assign Explosion kills to players - 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)
+--- Thread: assign Explosion kills to players (
/showthread.php?tid=370581)
Explosions Kills -
DaTa[X] - 20.08.2012
how to assign (CreateExplosion) kills to the other players
please ?
Re: assign Explosion kills to players -
[MWR]Blood - 20.08.2012
Get the player's position and create the explosion near him.
Re : assign Explosion kills to players -
DaTa[X] - 20.08.2012
Yes i know that but when my explosion kill the player i get the kill
and send a death message in kill list
Re: assign Explosion kills to players -
Lordzy - 20.08.2012
Try this:
pawn Код:
CMD:explode(playerid, params[])
{
new targetid;
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"[ERROR] Usage:/explode [PlayerID]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"Player isnt connected!");
new Float:x,Float:y,Float:z;
GetPlayerPos(targetid,x,y,z);
CreateExplosion(x,y,z,12,10.0);
return 1;
}
Im sorry if theres any mistake because i created this through mobile.
Re : assign Explosion kills to players -
DaTa[X] - 20.08.2012
for exaple
Код:
dcmd_bomb(playerid,params[])
{
#pragma unused params
GetPlayerPos(playerid,x,y,z);
CreateExplosion(x,y,z);
return 1;
}
when someone died from that bomb i want to send a death message that's all
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
}
how i can use GetPlayerDistance
Re: assign Explosion kills to players -
[MWR]Blood - 20.08.2012
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
return 1;
}