27.04.2011, 15:28
I'll help you only with leave:
P.S:You could help me if you tell me how tos cript arrest command for a button if you know.
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME],string[22+MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s has joined the server",pname);
SendClientMessageToAll(GREY,string);
return 1;
}
OnPlayerDisconnect(playerid,reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server. (Timed Out)", pname);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
}
SendClientMessageToAll(GREY, string);
return 1;
}