Neon system unknow command
#10

Try using this command
pawn Код:
CMD:makeadmin(playerid, params[])  {
    if(PlayerInfo[playerid][pAdmin] >= 99999) {

        new
            iAdminValue,
            iTargetID;

        if(sscanf(params, "ui", iTargetID, iAdminValue)) {
            SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /makeadmin [player] [level]");
            }
        if(!IsPlayerConnected(iTargetID)) return SendClientMessage(playerid, -1, "Invalid Player ID");
            if(PlayerInfo[iTargetID][pHelper] >= 1) {
                SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot make community advisors admins!");
            }

                new
                    szMessage[47 + (MAX_PLAYER_NAME * 2)];

                PlayerInfo[iTargetID][pAdmin] = iAdminValue;
                format(szMessage, sizeof(szMessage), "AdmCmd: %s has promoted %s to a level %d admin, Well done.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
                ABroadCast(COLOR_LIGHTRED,szMessage, 2);
                format(szMessage, sizeof(szMessage), "You have been promoted to a level %d admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
                SendClientMessageEx(iTargetID, COLOR_LIGHTBLUE, szMessage);
                format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d admin.", GetPlayerNameEx(iTargetID),iAdminValue);
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);

    }
    else SendClientMessageEx(playerid, COLOR_GRAD1, "Look here noob your not autherised, now piss off.!");
    return 1;
}
Reply


Messages In This Thread
Neon system unknow command - by morha12 - 07.09.2013, 05:22
Re: Neon system unknow command - by [HK]Ryder[AN] - 07.09.2013, 05:39
Re: Neon system unknow command - by morha12 - 07.09.2013, 05:43
Re: Neon system unknow command - by morha12 - 07.09.2013, 05:59
Re: Neon system unknow command - by [HK]Ryder[AN] - 07.09.2013, 06:00
Re: Neon system unknow command - by morha12 - 07.09.2013, 06:09
Re: Neon system unknow command - by [HK]Ryder[AN] - 07.09.2013, 06:11
Re: Neon system unknow command - by morha12 - 07.09.2013, 06:18
Re: Neon system unknow command - by morha12 - 08.09.2013, 13:23
Re: Neon system unknow command - by [HK]Ryder[AN] - 08.09.2013, 16:05

Forum Jump:


Users browsing this thread: 4 Guest(s)