09.10.2009, 21:57
yea heres the code
timer works fine in samp2 but in samp3 it's all messed up
Код:
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; }