CMD:ja(playerid, params[])
{
SetPlayerPos(playerid, 264.6689,77.6638,1001.0391);
SetPlayerInterior(playerid, 6);
SetPlayerFacingAngle(playerid, 270.6995);
SetTimerEx("In123", 2*60000, true, "i", playerid);
PlayerInfo[playerid][pJ123] = 120;
return 1;
}
forward In123(playerid);
public In123(playerid)
{
new string[128];
PlayerInfo[playerid][pJ123] --;
format(string, sizeof(string), "zbyva: %d", PlayerInfo[playerid][pJ123]);
SendClientMessage(playerid, ADMIN, string);
if(PlayerInfo[playerid][pJ123] == 0)
{
SpawnPlayer(playerid);
SendClientMessage(playerid, SERVER, "Byl jsi propuљtěn");
}
return 1;
}
#define Seconds(%0) (( %0 ) * ( 1000 )) #define Minutes(%0) (( %0 ) * ( 1000*60 )) #define Hours(%0) (( %0 ) * ( 1000*60*60 ))
SetTimerEx("In123", Minutes(1), true, "i", playerid); //1 minute timer.
|
dude, u waited this for 2 hours? I don't think so.
60000*2=120000 ms, which is 2 hours. |
|
lol 120,000 ms is 120 seconds = 2 minutes not 2 hours... 1 second is 1000 ms, you take 120,000 divide it by 1000 that'll give you 120 seconds, take that divide it by 60 you'll get 2 (minutes) that isn't 2 hours people...
|