Multi-Voice Spam

Posts 110 of 10 · Page 1 of 1
Multi-Voice Spam
Well, I saw Acea release only one spam message, I want you coders to decide which message to spam, not just "Fuck I dont wanna die" or "Go, Go, Go"

This should be rather easy to figure out as well.

Enjoy

Code:
if(Main->Variable->iVoiceSpam)
{
	Msg.Writeuint8(190);
	Msg.Writeuint16(0);
	Msg.Writeuint32(0);

	switch(Main->Variable->iVoiceSpam)
	{
	case 1: Msg.Writeuint8(0); break;
	case 2: Msg.Writeuint8(1); break;
	case 3: Msg.Writeuint8(2); break;
	}

	switch(Main->Variable->iVoiceMessage)
	{
	case 0:	Msg.Writeuint8(0); break;
	case 1:	Msg.Writeuint8(1); break;
	case 2:	Msg.Writeuint8(2); break;				
	case 3:	Msg.Writeuint8(3); break;
	case 4:	Msg.Writeuint8(4); break;
	case 5:	Msg.Writeuint8(5); break;
	case 6:	Msg.Writeuint8(6); break;
	case 7:	Msg.Writeuint8(7); break;			
	case 8: Msg.Writeuint8(8); break;
	}
pSendToServer(Msg.Read(), MESSAGE_GUARANTEED);
}
Quote Originally Posted by arun823 View Post
LOL, I didn't even know this was released before, well, now people who love to c + p can direct copy my code
It's good you posted ... will even copy kkk
Nice work, if the guy devote a little time in the programming logic to do many cool things with some functions of both CA PTC classes and how many functions among others.
Nice if you wrote this
Quote Originally Posted by arun823 View Post
Well, I saw Acea release only one spam message, I want you coders to decide which message to spam, not just "Fuck I dont wanna die" or "Go, Go, Go"

This should be rather easy to figure out as well.

Enjoy

Code:
if(Main->Variable->iVoiceSpam)
{
	Msg.Writeuint8(190);
	Msg.Writeuint16(0);
	Msg.Writeuint32(0);

	switch(Main->Variable->iVoiceSpam)
	{
	case 1: Msg.Writeuint8(0); break;
	case 2: Msg.Writeuint8(1); break;
	case 3: Msg.Writeuint8(2); break;
	}

	switch(Main->Variable->iVoiceMessage)
	{
	case 0:	Msg.Writeuint8(0); break;
	case 1:	Msg.Writeuint8(1); break;
	case 2:	Msg.Writeuint8(2); break;				
	case 3:	Msg.Writeuint8(3); break;
	case 4:	Msg.Writeuint8(4); break;
	case 5:	Msg.Writeuint8(5); break;
	case 6:	Msg.Writeuint8(6); break;
	case 7:	Msg.Writeuint8(7); break;			
	case 8: Msg.Writeuint8(8); break;
	}
pSendToServer(Msg.Read(), MESSAGE_GUARANTEED);
}
Much more concise:
Code:
if(Main->Variable->iVoiceSpam)
{
	Msg.Writeuint8(190);
	Msg.Writeuint16(0);
	Msg.Writeuint32(0);
	Msg.Writeuint8(Main->Variable->iVoiceSpam-1);			
	Msg.Writeuint8(Main->Variable->iVoiceMessage);
	pSendToServer(Msg.Read(), MESSAGE_GUARANTEED);
}
Quote Originally Posted by Saltine View Post

Much more concise:
Code:
if(Main->Variable->iVoiceSpam)
{
	Msg.Writeuint8(190);
	Msg.Writeuint16(0);
	Msg.Writeuint32(0);
	Msg.Writeuint8(Main->Variable->iVoiceSpam-1);			
	Msg.Writeuint8(Main->Variable->iVoiceMessage);
	pSendToServer(Msg.Read(), MESSAGE_GUARANTEED);
}
Wow, never thought of it that way, thanks for that.
Nice work
Thanx, Hope nobody will leech this .
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?