10.06.2014, 20:22
Yep, and the killerid will be the one who created the pickup ( i )
EDIT:PrivatioBoni, come one man im not a noob if i wanted to set the health automatically i could do it easily..
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) {continue;}
if(status[i] == 0) {continue;}
if(pickupid == minePickup[i])
{
new Float:X, Float:Y, Float:Z;
GetObjectPos(mine[i][0], X, Y, Z);
CreateExplosion(X, Y, Z, 7, 1);
DestroyPickup(minePickup[i]);
DestroyObject(mine[i][0]);
DestroyObject(mine[i][1]);
status[i] = 0;
}
}