Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
/* Ronaldo_raul™ Productions Presents- ________________________________________________________________________________ Elegy Turbo\'s! //============================================================================== -->Do Not Re-Release This Script Without My Permission. -->DO Not Claim This Script As Your Own. -->Do Not Sell This Script. -->Suggestion,Bugs........PM ME ! Or Post Them On The Release Thread. This FilterScript is made by Ronaldo_raul™
Copyright ˆ 2012-2013 *******Keep All credits in the filterscript.******* //==============================================================================*/ //============================================================================== // Defines And Include //============================================================================== #define FILTERSCRIPT #include < a_samp > #include < zcmd >
#define INFO 0x0080FFFF #define WHITE \"{FFFFFF}\" #define RED \"{FF0000}\" #define GREEN \"{80FF00}\" new HaveTurbo [ MAX_PLAYERS ] ; new Fire [ 14 ] ; new Ex [ 7 ] ; //============================================================================== //============================================================================== public OnFilterScriptInit() { print(\"\\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\"); print(\" Turbo Fire - FS By Ronaldo_raul\\n Loaded.\"); print(\"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\\n\"); return 1; } public OnPlayerConnect(playerid) { HaveTurbo [ playerid ] = 0 ; return 1; } public OnPlayerDisconnect(playerid, reason) { HaveTurbo [ playerid ] = 0 ; return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { if ( HaveTurbo [ playerid ] == 1 ) { DestroyObject ( Ex [ 0 ] ) ; DestroyObject ( Ex [ 1 ] ) ; DestroyObject ( Ex [ 2 ] ) ; DestroyObject ( Ex [ 3 ] ) ; DestroyObject ( Ex [ 4 ] ) ; DestroyObject ( Ex [ 5 ] ) ; DestroyObject ( Ex [ 6 ] ) ; HaveTurbo [ playerid ] = 0 ; } return 1; } CMD:turbo ( playerid , params [] ) { if ( HaveTurbo [ playerid ] == 1 ) return SendClientMessage ( playerid , INFO , \"(INFO) \"#WHITE\"You already have \"#RED\"turbo\'s \"#GREEN\"installed.\" ) ; if ( IsPlayerInAnyVehicle ( playerid ) && GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) == 562 ) { Ex [ 0 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 0 ], GetPlayerVehicleID(playerid), 0.089999,1.275000,-0.505000,-123.119987,-1.620000,-270.719848); Ex [ 1 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 1 ], GetPlayerVehicleID(playerid), 0.089999,1.564999,-0.505000,-123.119987,-1.620000,-270.719848); Ex [ 2 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 2 ], GetPlayerVehicleID(playerid), 0.059999,1.854999,-0.505000,-123.119987,-1.620000,-270.719848); Ex [ 3 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 3 ], GetPlayerVehicleID(playerid), 0.059999,1.854999,-0.505000,-123.119987,-1.620000,-270.719848); Ex [ 4 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 4 ], GetPlayerVehicleID(playerid), -0.045000,1.854999,-0.505000,-123.119987,3.779998,-88.020568); Ex [ 5 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 5 ], GetPlayerVehicleID(playerid), -0.075000,1.529999,-0.505000,-123.119987,9.540000,-83.700561); Ex [ 6 ] = CreateObject(1018,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Ex [ 6 ], GetPlayerVehicleID(playerid), -0.095000,1.275000,-0.505000,-123.119987,-1.620000,-451.260925); HaveTurbo [ playerid ] = 1 ; } else SendClientMessage ( playerid , INFO , \"(INFO) \"#WHITE\"You need to be in an \"#RED\"elegy \"#WHITE\"to use this \"#GREEN\"command.\" ) ; return 1 ; }
Üdv elhoztam nektek a www.sa-mp.com fórumrol egy szépen kidolgozott szkriptet! Lényege ahányszor beírod /fire anyi tûz bombád lesz! Magyarositani nem kell mert nincsen benne szöveg Erdeti Téma: http://forum.sa-mp.com/showthread.php?t=320398 Erdeti Készitõ: BRICS Szkript:
#include <a_samp> /*POWER FIRE by BRICS*/ #define POWER_FIRE_ENABLED_TEXT \"The power of fire enabled. Using the power-fire - punch\" #define ERROR_1 \"You already have the power-fire\" #define MESS_1 \"You do not own a power-fire\" #define FIRE_TIMER_INTERVAL 80 #define FIRE_POWER_SOUND 1039 #define FIRE_START_DIST 13.0 #define FIRE_FINAL_DIST 90.0 #define FIRE_NEXT_DIST 3.0 #define Explosion_Rad 5 #define Explosion_Type 1 #define FIRE_CMD \"/fire\" #define PLAYER_DAMAGE_DIST 1.5 #define VEH_DAMAGE_DIST 4.0 /*Code*/ new S[MAX_PLAYERS] = -1; new Fires[MAX_PLAYERS]; new Float: dist[MAX_PLAYERS]/* = 100.0*/; new Timer[MAX_PLAYERS]; new Float: PEX[3][MAX_PLAYERS]; new Float: P[4][MAX_PLAYERS]; forward Fireman(playerid); public OnFilterScriptInit() { print(\" Fire-Power by BRICS loaded.\"); for(new i; i < GetMaxPlayers(); i++)S = -1; return 1; } public OnFilterScriptExit() { for(new i; i < GetMaxPlayers(); i++)KillTimer(Timer); print(\" Fire-Power by BRICS unloaded.\"); return 1; } public OnPlayerConnect(playerid) { S[playerid] = -1; Fires[playerid] = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(FIRE_CMD, cmdtext, true, 10) == 0) { if(S[playerid] > -1)return SendClientMessage(playerid,-1,ERROR_1); S[playerid] = 1; Fires[playerid] = 5; SendClientMessage(playerid,-1,POWER_FIRE_ENABLED_TEXT); return 1; } return 0; } public Fireman(playerid) { if(dist[playerid] >= FIRE_FINAL_DIST) { KillTimer(Timer[playerid]); //dist[playerid] = 100.0; if(Fires[playerid] == 0) { S[playerid] = -1; SendClientMessage(playerid,-1,MESS_1); return 1; } S[playerid] = 1; return 1; } GetXYInFrontOfPoint(P[0][playerid],P[1][playerid], PEX[0][playerid], PEX[1][playerid], P[3][playerid], dist[playerid]); CreateExplosion(PEX[0][playerid],PEX[1][playerid],P[2][playerid],Explosion_Type,Explosion_Rad); for(new i; i < GetMaxPlayers(); i ++) { if(!IsPlayerConnected(i))continue; if(GetPlayerDistanceFromPoint(i,PEX[0][playerid],PEX[1][playerid],P[2][playerid]) < PLAYER_DAMAGE_DIST) { new Float:hp; GetPlayerHealth(i,hp); if(hp <= 0)continue; SetPlayerHealth(i,-1); } } for(new v; v < MAX_VEHICLES; v ++) { if(GetVehicleDistanceFromPoint(v,PEX[0][playerid],PEX[1][playerid],P[2][playerid]) <= VEH_DAMAGE_DIST)SetVehicleHealth(v,0);