assign Explosion kills to players
#1

how to assign (CreateExplosion) kills to the other players

please ?
Reply
#2

Get the player's position and create the explosion near him.
Reply
#3

Yes i know that but when my explosion kill the player i get the kill
and send a death message in kill list
Reply
#4

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.
Reply
#5

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
Reply
#6

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)