20.08.2012, 15:46
(
Последний раз редактировалось DaTa[X]; 20.08.2012 в 17:52.
)
how to assign (CreateExplosion) kills to the other players
please ?
please ?
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;
}
dcmd_bomb(playerid,params[]) { #pragma unused params GetPlayerPos(playerid,x,y,z); CreateExplosion(x,y,z); return 1; }
public OnPlayerDeath(playerid, killerid, reason) { }
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
return 1;
}