10.04.2013, 18:36
Hello!
I have one problem with my /nuke command...
How can I make an explosion bigger, I mean when I type /nuke 0 ingame is player still alive...But I want that player should die.
CODE:
Thank you for your help
I have one problem with my /nuke command...
How can I make an explosion bigger, I mean when I type /nuke 0 ingame is player still alive...But I want that player should die.
CODE:
PHP код:
CMD:nuke(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < 3)return SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this command!");
new string[128], ID, Float:x, Float:y, Float:z;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_ORANGE, "Usage: /nuke [playerid/name]");
else if(!IsPlayerConnected(ID)) SendClientMessage(playerid, COLOR_RED, "ERROR: This player is not connected.");
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(ID, pName, MAX_PLAYER_NAME);
GetPlayerPos(ID, x, y, z);
CreateExplosion(x, y, z, 10, 10.0);
format(string,sizeof(string), "[System]: You have exploded %s.", pName);
SendClientMessage(playerid, COLOR_PURPLE, string);
}
return 1;
}
