09.10.2009, 04:03
timers are bugged out for ex the gates i use are set to close in 10 secs but close in 1sec instead of 10
I'm using the SetTimer function
I'm using the SetTimer function
|
Originally Posted by pepper
nope there set at 10000
SetTimer("GateClosepdgate", 10000, 0); |
if (strcmp("/pdgatop", cmdtext, true) == 0)
{
if(IsACop(playerid))
{
MoveStreamObject(pdgate,1546.58,-1626.19,19.88,1);
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string), "* %s uses his remote to open the shutter to the SFPD.",sendername);
}
else
{
return SendClientMessage(playerid, COLOR_YELLOW, "You are not a Cop!");
}
GameTextForPlayer(playerid, "~G~Gate open!", 3000, 5);
SetTimer("GateClosepdgate", 10000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"The PDGATE Gate will AutoClose in 5 Seconds");
return 1;
}
|
Originally Posted by pepper
yea heres the code
Код:
if (strcmp("/pdgatop", cmdtext, true) == 0)
{
if(IsACop(playerid))
{
MoveStreamObject(pdgate,1546.58,-1626.19,19.88,1);
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string), "* %s uses his remote to open the shutter to the SFPD.",sendername);
}
else
{
return SendClientMessage(playerid, COLOR_YELLOW, "You are not a Cop!");
}
GameTextForPlayer(playerid, "~G~Gate open!", 3000, 5);
SetTimer("GateClosepdgate", 10000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"The PDGATE Gate will AutoClose in 5 Seconds");
return 1;
}
|