21.06.2011, 14:34
Try with this:
Код:
public OnPlayerPause(playerid) { new string[128]; format(string, sizeof(string),".AFK рлрс моцб %s дщзчп **",GetName(playerid)); SendClientMessageToAll(COLOR_ORANGE, string); AFK[playerid] = 1; TogglePlayerControllable(playerid,0); return 0; } //------------------------------------------------------------------------------ public OnPlayerUnpause(playerid) { new string[128]; format(string, sizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid)); SendClientMessageToAll(COLOR_GREEN, string); TogglePlayerControllable(playerid,1); AFK[playerid] = 0; return 0; } //------------------------------------------------------------------------------