26.08.2012, 12:51
pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
new p_Name[24],str[128];
GetPlayerName(playerid,p_Name,sizeof(p_Name));
switch(reason)
{
case 0: format(str,sizeof(str),"::: %s[%d] Has left #COL_YELLOW" (Timedout) :::",p_Name,playerid);
case 1: format(str,sizeof(str),"::: %s[%d] Has left #COL_YELLOW" (Leaving) :::",p_Name,playerid);
case 2: format(str,sizeof(str),"::: %s[%d] Has left #COL_YELLOW" (Kicked/Banned) :::",p_Name,playerid);
}
return 1;
}
pawn Код:
print(str);
Rewrote the whole call back but still doesn't respond
Anyone?