18.08.2011, 22:30
(
Последний раз редактировалось GameStar.; 18.08.2011 в 23:48.
)
:: Pause check ::
This script, we can see that the player is paused or not.pawn Код:
#include <a_samp>
#include <pause>
public OnPlayerPaused(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new string[128];
format(string, 128, "%s is paused!", name);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
public OnPlayerUnpaused(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new string[128];
format(string, 128, "%s is unpaused!", name);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
Tanks to:
Goldkiller - spawn function
AndreT - Idea