Posts: 501
Threads: 142
Joined: Jun 2013
Reputation:
0
How can you create a Join/Leave message, I checked Wiki, but my Pawno is crashing from the code.
Do you got maybe one for me
Or do you know what i need to do
Posts: 241
Threads: 13
Joined: Jan 2014
Above one is connect message!
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
switch (reason) {
case 0:
{
format(str, sizeof(str), "%s (%d) has left the server ~r~[Timeout]", PlayerName, playerid);
}
case 1:
{
format(str, sizeof(str), "%s (%d) has left the server ~r~[Leaving]", PlayerName, playerid);
}
case 2:
{
format(str, sizeof(str), "%s (%d) has left the server ~r~[Kicked or Banned]", PlayerName, playerid);
}
SendClientMessageToAll(-1, str);
}
return 1;
}
And this is your leave message