29.11.2012, 15:45
IF I TYP /TOR THE GATE DONT OPEN..
Variable:
The Object:
My Command:
Variable:
Код:
new lsoszu1; new lsoszu2; new lstorzu;
Код:
lsoszu1 = CreateObject(985, 1546.7359619141, -1623.6981201172, 14.057813644409, 0, 0, 90); lsoszu2 = CreateObject(986, 1546.7437744141, -1631.6374511719, 14.057786941528, 0, 0, 90); lstorzu = CreateObject(980, 1588.2983398438, -1637.8962402344, 15.175374984741, 0, 359.25, 359.75);
Код:
if(strcmp("/tor", cmdtext, true) == 0) { if(IsPlayerInFrak(playerid, 1)) { if(IsPlayerInRangeOfPoint(playerid, 20, 1588.2978515625, -1637.8955078125, 9.6003952026367)) { MoveDynamicObject(lstorzu, 1588.2978515625, -1637.8955078125, 9.6003952026367, 4); SetTimer("lstorzuTimer", 7000, 0); return 1; } if(IsPlayerInRangeOfPoint(playerid, 20, 1546.7431640625, -1631.63671875, 6.8828058242798)) { MoveDynamicObject(lsoszu2, 1546.7431640625, -1631.63671875, 6.8828058242798, 4); SetTimer("lsoszu2Timer", 7000, 0); MoveDynamicObject(lsoszu1, 1546.7353515625, -1623.697265625, 6.8828330039978, 4); SetTimer("lsoszu1Timer", 7000, 0); return 1; } }