31.08.2009, 02:12
Quote:
Originally Posted by JR !
You can give this a try, should work.
Код:
//==== //forward OneMinTimer(); //GameModeInit SetTimer("OneMinTimer", 60000, true); public OneMinTimer() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerData[i][PrisonTime] > 0) { PlayerData[i][PrisonTime] -= 1; } } } return 1; } if(strcmp("/jailtime",cmdtext,true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerData[playerid][PrisonTime] == 0) { SendClientMessage(playerid, WHITE, "You are not in Jail"); return 1; } format(string,sizeof(string)," %d Minutes",PlayerData[playerid][PrisonTime]); SendClientMessage(playerid,WHITE,string); } return 1; } |
Can you not do it like everyone it should go down, if i jail some one 5 minutes after 1 minutes he use /jailtime and it shows 4 mins you script only shows how long I jailed him