Jetpack ZCMD
#5

pawn Код:
CMD:jetpack(playerid, params[])
{
        new string[128];
        if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
        if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
        if(sscanf(params, "u", playerid));
        format(string, sizeof(string), "AdmCmd %s has spawned a Jetpack.", sendername);
        ABroadCast(COLOR_DARKRED, string);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        return 1;
}

stock ABroadCast(color,string[],level)
{
    foreach(Player, i)
    {
        if (PlayerInfo[i][pAdmin] >= level)
        {
            SendClientMessageEx(i, color, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Jetpack ZCMD - by Fiore - 19.10.2012, 15:29
Re: Jetpack ZCMD - by dannyk0ed - 19.10.2012, 15:32
Re: Jetpack ZCMD - by Fiore - 19.10.2012, 15:35
Re: Jetpack ZCMD - by MrCoder - 19.10.2012, 15:38
Re: Jetpack ZCMD - by dannyk0ed - 19.10.2012, 15:40
Re: Jetpack ZCMD - by Fiore - 19.10.2012, 15:48
Re: Jetpack ZCMD - by MrCoder - 19.10.2012, 15:50
Re: Jetpack ZCMD - by Riddick94 - 19.10.2012, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)