18.05.2014, 13:48
how to make a team destroy of objects in the car
Код HTML:
if(strcmp("/ranch", cmdtext, true, 10) == 0) { new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid)); if (pvehiclemodel == 490 ) { CreateVehicleObject(1116, GetPlayerVehicleID(playerid),0.000000,3.159999,-0.239999,0.000000,0.000000,0.000000,100.0); CreateVehicleObject(1117, GetPlayerVehicleID(playerid),0.000000,3.319999,-0.239999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1115, GetPlayerVehicleID(playerid),0.399999,3.319999,-0.239999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1115, GetPlayerVehicleID(playerid),-0.399999,3.319999,-0.239999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1004, GetPlayerVehicleID(playerid),0.000000,1.640000,0.479999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1006, GetPlayerVehicleID(playerid),0.000000,2.359999,0.479999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1010, GetPlayerVehicleID(playerid),0.489999,-2.839999,0.379999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1012, GetPlayerVehicleID(playerid),-0.010000,0.759999,1.039999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1168, GetPlayerVehicleID(playerid),-0.910000,-2.500000,-0.220000,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1168, GetPlayerVehicleID(playerid),-1.180000,-2.500000,-0.220000,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1028, GetPlayerVehicleID(playerid),0.169999,-1.060000,-0.220000,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1028, GetPlayerVehicleID(playerid),-0.100000,-1.060000,-0.220000,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1028, GetPlayerVehicleID(playerid),0.049999,-1.060000,-0.100000,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1178, GetPlayerVehicleID(playerid),0.950000,3.169999,0.259999,0.000000,0.000000,180.000000, 100.0); CreateVehicleObject(1164, GetPlayerVehicleID(playerid),-0.040000,-2.680000,1.099999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1166, GetPlayerVehicleID(playerid),1.049999,2.669998,-0.260000,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1144, GetPlayerVehicleID(playerid),0.889999,2.749998,0.379999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1144, GetPlayerVehicleID(playerid),-0.870000,2.749998,0.379999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1145, GetPlayerVehicleID(playerid),-0.870000,1.709999,0.459999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1145, GetPlayerVehicleID(playerid),0.889999,1.709999,0.459999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1135, GetPlayerVehicleID(playerid),1.209999,1.389998,-0.639999,-5.000000,5.000000,360.000000, 100.0); CreateVehicleObject(1135, GetPlayerVehicleID(playerid),1.179999,0.189998,-0.610000,-5.000000,5.000000,360.000000, 100.0); CreateVehicleObject(1135, GetPlayerVehicleID(playerid),-1.219998,1.419998,-0.639999,-5.000000,5.000000,360.000000, 100.0); CreateVehicleObject(1135, GetPlayerVehicleID(playerid),-1.219998,0.219998,-0.600000,-5.000000,5.000000,360.000000, 100.0); CreateVehicleObject(1132, GetPlayerVehicleID(playerid),0.600001,0.159998,1.029999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1132, GetPlayerVehicleID(playerid),0.600001,-1.490001,0.989999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1109, GetPlayerVehicleID(playerid),-0.039998,-2.890000,0.029999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1109, GetPlayerVehicleID(playerid),0.040001,-2.890000,0.029999,0.000000,0.000000,0.000000, 100.0); CreateVehicleObject(1100, GetPlayerVehicleID(playerid),0.020001,-0.350000,0.029999,0.000000,0.000000,180.000000, 100.0); CreateVehicleObject(1080, GetPlayerVehicleID(playerid),-0.579998,-3.250000,0.129999,0.000000,0.000000,270.000000, 100.0); CreateVehicleObject(1099, GetPlayerVehicleID(playerid),-1.179998,2.249999,0.129999,0.000000,0.000000,180.000000, 100.0); CreateVehicleObject(1110, GetPlayerVehicleID(playerid),0.020001,2.949998,-0.270000,0.000000,0.000000,180.000000, 100.0); CreateVehicleObject(1111, GetPlayerVehicleID(playerid),-0.009998,3.169998,0.429999,0.000000,0.000000,360.000000, 100.0); CreateVehicleObject(1274, GetPlayerVehicleID(playerid),1.200001,1.409999,-0.050000,0.000000,0.000000,90.000000, 100.0); CreateVehicleObject(1274, GetPlayerVehicleID(playerid),-1.199998,1.409999,-0.050000,0.000000,0.000000,265.000000, 100.0); SendClientMessage(playerid, 0xFFFFFFFF, "Âû îáíîâèëè "green"(Ðàí÷åð)(490)"); } else { SendClientMessage(playerid, 0xFFFFFFFF, "Âû äîëæíû áûòü â "green"ìàøèíå."); } return 1; }