29.12.2010, 20:00
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: // crashed
{
// save stuff here and etc.
}
case 1: // disconnected
{
// stuff here
}
case 2: // kicked or banned
{
// stuff
}
}
return 1;
}