19.02.2011, 03:39
pawn Код:
new JailText[MAX_PLAYERS];
public JailTime()
{
new string[128];
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(JailText[playerid] > 0)
{
JailText[playerid]--;
format(string, sizeof(string), "Jail time: %d seconds left !", JailText[playerid]);
GameTextForPlayer(playerid, string, 1000, 4);
}
}
return 1;
}
Example:
pawn Код:
JailText[playerid] = 300;