Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // = ======================================= =
- // = Lanciagranate =
- // = ======================================= =
- // = Author: Cristian 'J4Rr3x' Cosenza =
- // = Date: 08/06/2015 =
- // = ======================================= =
- //-----------------------------------------------------------------
- #include <a_samp>
- //-----------------------------------------------------------------
- #define EXPLOSION_RADIUS (3.0)
- //-----------------------------------------------------------------
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("=========================================");
- print(" = Lanciagrnate =");
- print("=========================================");
- return 1;
- }
- public OnFilterScriptExit() { return 1; }
- #else
- main() { }
- #endif
- public OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid, "g_HasGrenadeLauncher", 0);
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(!GetPlayerAmmo(playerid) && GetPlayerWeapon(playerid) == WEAPON_SHOTGSPA)
- SetPVarInt(playerid, "g_HasGrenadeLauncher", 0);
- if(GetPlayerWeapon(playerid) == WEAPON_SHOTGSPA && GetPVarInt(playerid, "g_HasGrenadeLauncher"))
- CreateExplosion(fX, fY, fZ, 1, 5.0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement