17.02.2012, 21:11
Ok i scripted the gate to open and i made the time for it to close But it wont close !
Код:
if(!strcmp(cmdtext, "/impound", true)) { if(PlayerInfo[playerid][pJob] != 7) { SendClientMessage(playerid, COLOR_BLUE,"The impound gate is opened and will close in 7 seconds."); SendClientMessage(playerid, COLOR_GREY, "You are not a Car Mechanic!"); return 1; } if (IsPlayerInRangeOfPoint(playerid, 15,1638.2725,-1146.0609,23.9063)) { MoveDynamicObject(impoundgate1,1638.9386,-1141.2346,36.2896, 0.8); SetTimer("GateClose6", 12000, 0); format(string, sizeof(string), "* %s takes out his/her impound remote and opens the gate.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); } return 1; }