19.06.2011, 18:03
I tried to use it that include:
The problem is that it does not show my..
PHP код:
public OnPlayerPause(playerid)
{
if(!YUP_IsPlayerPaused(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)
{
if(YUP_IsPlayerPaused(playerid)) {
new string[128];
format(string, sizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid));
SendClientMessageToAll(COLOR_GREEN, string);
TogglePlayerControllable(playerid,1);
AFK[playerid] = 0;
}
return 0;
}
//------------------------------------------------------------------------------