21.02.2015, 14:38
this is my code ,i want to give kills to the player and give damage to the players in the range and it should show in kill feed
Код:
forward DelayedNuke(playerid);
public DelayedNuke(playerid)
{
SetWeather(19);
SendClientMessageToAll(COLOR_MAROON,"[NUKE] Balla's base has been nuked");
CreateExplosion(2466.5945,-1660.5227,13.2774,6,100.0);
for(new i = 0; i < MAX_PLAYERS; i ++)
if(IsPlayerInRangeOfPoint(i,50.0,2466.5945, -1660.5227, 13.2774))
{
if(PInfo[i][God] == 1 || PInfo[i][pAdminDuty] == 1)
return 1;
GameTextForPlayer(i, "~r~NUKED!",2000,3);
SetPlayerHealth(i,0.0);
PInfo[i][Nuked] = 1;
}
return 1;
}


