Neve: Alapvetõ bomba lerakó
Készítette: xganyx
Link:
http://forum.sa-mp.com/showthread.php?t=448630Fordította: citromhun
Fordított változat:
#include <a_samp>
#include <zcmd>
new Float:x,Float:y,Float:z;
new bombpick;
forward bombtime();
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Alapvetõ bomba lerakó készítette: xGanyx\");
print(\" Fordította: citromhun \");
print(\"--------------------------------------\\n\");
return 1;
}
OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}
CMD:bomb(playerid,params[])
{
ClearAnimations(playerid);
OnePlayAnim(playerid, \"BOMBER\", \"BOM_Plant\", 4.0, 0, 0, 0, 0, 0);
GetPlayerPos(playerid,x,y,z);
CreatePickup(1252,1,x,y,z,0);
SetTimerEx(\"bombtime\",6000,false,\"i\",playerid);
return 1;
}
public bombtime()
{
CreateExplosion(x,y,z,12,25.0);
return 1;
}
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == bombpick)
{
GameTextForPlayer(playerid,\"~r~A bombat leraktak.\",3000,4);
}
return 1;
}