Help: /explode command ERROR
#5

pawn Код:
CMD:explode(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_RED, "Usage: /explode [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, 12, 10.0);
        format(string,sizeof(string), "You have exploded %s(%d).", pName, ID);
        SendClientMessage(playerid, COLOR_PURPLE, string);
    }
    return 1;
}
Reply


Messages In This Thread
Help: /explode command ERROR - by Areax - 05.04.2013, 15:30
Respuesta: Help: /explode command ERROR - by trollkemada - 05.04.2013, 15:44
Re: Help: /explode command ERROR - by Areax - 05.04.2013, 15:51
Re: Help: /explode command ERROR - by BodyBoardVEVO - 05.04.2013, 15:54
Re: Help: /explode command ERROR - by SilverKiller - 05.04.2013, 15:54
Re: Help: /explode command ERROR - by Areax - 05.04.2013, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)