Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- forward C4(playerid);
- forward Anim(playerid);
- forward Pack(playerid);
- new Float:BX, Float:BY, Float:BZ;
- new Loaded[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("Bomba c4 by [AGD]MAIKEL");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public C4(playerid)
- {
- CreateExplosion(BX,BY,BZ,7,2);
- }
- public Anim(playerid)
- {
- SendClientMessage(playerid, 0xFFFFFFFFF, "Acabas de Plantar la Bomba C4, Explotara en 5 segundos mas");
- SetTimer("C4",5000,false);
- }
- public Pack(playerid)
- {
- CreateObject(1279, BX,BY,BZ,0,0,0);
- SetTimer("Anim",3000,false);
- }
- stock PreloadAnimLib(playerid, animlib[])
- {
- ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/plantarc4", cmdtext, true) == 0)
- {
- GetPlayerPos(playerid,BX,BY,BZ);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("Pack",1000,false);
- return 1;
- }
- return 0;
- }
- public OnPlayerSpawn(playerid)
- {
- if(!Loaded[playerid])
- {
- PreloadAnimLib(playerid,"BOMBER");
- Loaded[playerid] = 1;
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Loaded[playerid] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement