I need help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help (
/showthread.php?tid=88186)
I need help -
pierhs - 24.07.2009
I made these leave messages but I want to avoid spamming.how can I change the "sendclientmessagetoall" so it will be visible only local?
Here is the code:
Код:
Public OnPlayerdisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "% has left the server.(Lost Connection)", pName);
case 1: format(string, sizeof(string), "% has left the server.(Leaving)", pName);
case 2: format(string, sizeof(string), "% has left the server.(Kicked/Banned)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
Thanks and sorry for the syntax because I write from mobile.
Re: I need help -
MenaceX^ - 24.07.2009
How could it make spams?
And I didn't understand your request.
Re: I need help -
RyDeR` - 24.07.2009
Quote:
Originally Posted by MenaceX^
And I didn't understand your request.
|
Yeah I don't understand it too
_________________________________________________
Can you change it a bit or explain more ..
Re: I need help -
pierhs - 24.07.2009
Many players will crashed or log at the same time so these messages will be reapeted.I have rp server and when someone logout to avoid arrest he should be prisoned but if the player crashed?should i prison him?so i want these messages to be visible only to players who are near to him
Re: I need help -
Correlli - 25.07.2009
Quote:
Originally Posted by pierhs
should i prison him?so i want these messages to be visible only to players who are near to him
|
When someone connects he isn't spawned so he isn't near to anyone.
Re: I need help -
abhinavdabral - 25.07.2009
You can use a textdraw to show those kind of messages. :P
Or remove those messages form SendClientMess....... and use SendDeathMessage (I have seen this in xMovie Server)
Thank You
-Abhinav