29.07.2014, 22:27
Simple:
Quote:
pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); Ramp close |
Quote:
public GateClose5() { DestroyDynamicObject( pdgate3 ); pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); lspdg2 = 0; return 1; } |
Quote:
else if(IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980)) { if(lspdg2 == 1) { SCM(playerid, COLOR_GREY, "** Rampa je vec otvorena"); return 1; } DestroyDynamicObject( pdgate2 ); pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869 ); SetTimer("GateClose5", 6000, 0); SCM(playerid, COLOR_BLUE,"Rampa je otvorena i bice zatvorena za 6 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima svoj daljinski i otvara rampu.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); lspdg2 = 1; } |