04.01.2013, 19:58
When I prison player, and when he/she write /time, that it shows how are they much jail to them ...
sorry for my bad english
Код:
CMD:time(playerid, params[]) { new Sati, Min, Sec, string[128]; gettime(Sati, Min, Sec); format(string, sizeof(string), "Now is: %i hours, %i minutes %i seconds.", Sati, Min, Sec); SendClientMessage(playerid, COLOR_GREEN, string); return 1; }
Код:
public Unjail(playerid) { new string[128], ReturnName[MAX_PLAYER_NAME]; GetPlayerName(playerid, ReturnName, sizeof(ReturnName)); format(string, sizeof(string), "You are on freedom"); SendClientMessage(playerid, COLOR_RED, string); Jailed[playerid] = 0; SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SpawnPlayer(playerid); SetPlayerHealth(playerid, 100); KillTimer(JailTimer[playerid]); return 1; }