SA-MP Forums Archive
bomb - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: bomb (/showthread.php?tid=117015)



bomb - nesty - 30.12.2009

hi, can someone tell me how i get the killerid of the person who create an explosion? really important for my score system
Maybe someone can just give me a tip to create the killerid? hope u can understand me


Re: bomb - Andy_McKinley - 30.12.2009

Do you mean how to create an explosion? This is the code:
pawn Код:
CreateExplosion; ();
Make sure you need the X,Y,Z codes and timer.


Re: bomb - nesty - 30.12.2009

lol thanks for answering but i know how to create an explosion i've created a command but i want to know how i get the killerid that means i wanna have the ID of the player who started the command and killed a playerlike this imagainary function:
pawn Код:
GetKillerCreatedExplosionName(playerid, name, sizeof(name));
hope u know what i mean


Re: bomb - Abernethy - 30.12.2009

Quote:
Originally Posted by McKinley
Do you mean how to create an explosion? This is the code:
pawn Код:
CreateExplosion; ();
Make sure you need the X,Y,Z codes and timer.
I detect a bit of coding fail.
pawn Код:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius); // format