27.07.2011, 17:23
Код:
new Jailed[MAX_PLAYERS], JailTime[MAX_PLAYERS];
Код:
Jailed[playerid] = 1; JailTime[playerid] = 120;
Код:
forward jailtime(playerid); public jailtime(playerid) { if(Jailed[playerid]) { format (format your TextDraw with time) TextDrawSetString TextDrawShowForPlayer JailTime[playerid] -= 1; if(JailTime[playerid] == -1) { Jailed[playerid] = 0; // Unjail player here. } return true; }