I need help
#1


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.
Reply
#2

How could it make spams?
And I didn't understand your request.
Reply
#3

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 ..
Reply
#4

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
Reply
#5

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.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)