18.03.2010, 11:45
Hey anoyher of my tutorials ![Cheesy](images/smilies/biggrin.png)
SendTargetMessage will send a message witch will exept a id example : i use in /ban :
i want that it doesnt send the message : "%s Got Banned..." to the player that got banned but he must still be connected . well il use SendTargetMessage(bannedidhere,red,string);
then the exeptionid ( in this case bannedidhere ) will not recive the message .
[WARRNING : this isnt for beginners but for alitle more advanced scripters
]
ok. this is the code ( i dont have much time sry...)
![Cheesy](images/smilies/biggrin.png)
SendTargetMessage will send a message witch will exept a id example : i use in /ban :
i want that it doesnt send the message : "%s Got Banned..." to the player that got banned but he must still be connected . well il use SendTargetMessage(bannedidhere,red,string);
then the exeptionid ( in this case bannedidhere ) will not recive the message .
[WARRNING : this isnt for beginners but for alitle more advanced scripters
![Cheesy](images/smilies/biggrin.png)
ok. this is the code ( i dont have much time sry...)
pawn Code:
stock SendTargetMessage(exeptionid,color,const msg[])
{
for (new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && i != exeptionid) SendClientMessage(i,color,msg);
}
}