[ Fs ] Razzo ( Tên Lửa )
Tên Lửa được đặt ở vị trí HQ SAAS.Ban nên dùng lệnh /gotoco 268.81646728516 1883.2470703125 -30.943752288818 - Code:
/* SA:MP Razzo V.2- * * Rapgangsta * 21/10/20010 # V 1.0; - 22/10/2010 # V 2.0; */
//==============================================================================
#include <a_samp>
#define MAX_OBJRAZZO 25
new ObjRazzo[MAX_OBJRAZZO];
public OnFilterScriptInit() { print("\n *********************\n * SA:MP Launch Missile *"); print(" * By Rapgangsta *\n *********************"); print(" * -- LOADED *\n *********************\n"); CreateObjects(); }
public OnFilterScriptExit() { print("\n *********************\n * SA:MP Launch Missile *"); print(" * -- TERMINATED *\n *********************\n"); }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/Launch", cmdtext, true, 10) == 0) { new Float: ics, Float: ipsi, Float: zeta; for(new z; z < MAX_OBJRAZZO; z++) { GetObjectPos(ObjRazzo[z],ics,ipsi,zeta); MoveObject(ObjRazzo[z],ics,ipsi,zeta+1000,80); CreateExplosion(ics,ipsi,zeta,6,7); } return 1; } if(strcmp("/ReloadLaunch", cmdtext, true, 10) == 0) { for(new z; z < MAX_OBJRAZZO; z++) { DestroyObject(ObjRazzo[z]); } CreateObjects(); return 1; } return 0; }
stock CreateObjects() { ObjRazzo[0] = CreateObject(17050, 268.81646728516, 1883.2470703125, -30.943752288818, 0, 0, 0); ObjRazzo[1] = CreateObject(2780, 268.31790161133, 1883.8327636719, -30.093765258789, 0, 180, 180); ObjRazzo[2] = CreateObject(3461, 271.18411254883, 1881.9747314453, -29.815612792969, 0, 180, 180); ObjRazzo[3] = CreateObject(3461, 270.84747314453, 1881.3690185547, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[4] = CreateObject(3461, 270.24923706055, 1880.8601074219, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[5] = CreateObject(3461, 269.78305053711, 1880.4891357422, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[6] = CreateObject(3461, 269.091796875, 1880.2977294922, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[7] = CreateObject(3461, 268.57189941406, 1880.3862304688, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[8] = CreateObject(3461, 267.90567016602, 1880.7198486328, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[9] = CreateObject(3461, 267.32711791992, 1880.9461669922, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[10] = CreateObject(3461, 266.92922973633, 1881.4879150391, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[11] = CreateObject(3461, 266.61187744141, 1881.8693847656, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[12] = CreateObject(3461, 265.97131347656, 1882.4827880859, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[13] = CreateObject(3461, 265.85067749023, 1883.5283203125, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[14] = CreateObject(3461, 266.28009033203, 1884.5358886719, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[15] = CreateObject(3461, 266.57830810547, 1885.2436523438, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[16] = CreateObject(3461, 267.10888671875, 1885.6883544922, -29.815612792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[17] = CreateObject(3461, 267.82574462891, 1885.6286621094, -29.518737792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[18] = CreateObject(3461, 268.27474975586, 1885.3807373047, -29.179565429688, 0, 179.99450683594, 179.99450683594); ObjRazzo[19] = CreateObject(3461, 269.05294799805, 1885.4799804688, -29.104499816895, 0, 179.99450683594, 179.99450683594); ObjRazzo[20] = CreateObject(3461, 269.58438110352, 1885.5164794922, -29.518737792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[21] = CreateObject(3461, 270.53463745117, 1884.6219482422, -29.518737792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[22] = CreateObject(3461, 270.66384887695, 1883.8135986328, -29.518737792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[23] = CreateObject(3461, 270.63092041016, 1882.9683837891, -29.518737792969, 0, 179.99450683594, 179.99450683594); ObjRazzo[24] = CreateObject(2780, 269.27267456055, 1882.9731445313, -30.19376373291, 0, 179.99450683594, 179.99450683594); }
|