"Unknow command" [+REP]
#2

pawn Код:
CMD:favip(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(sscanf(params, "ud", params[0], params[1])) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"Folosire: {FFCC33}/FaVip [ID] [Nivel Vip]");
        if(!IsPlayerConnected(params[0]) && params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Jucatorul nu este conectat!");
        if(VipInfo[params[0]][Vip] == params[1]) return SendClientMessage(playerid, -1, "already has that vip level");
        if(params[1] < 0 || params[1] > 2) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nivel gresit. [1-2]");
       
        GetPlayerName(playerid, name, sizeof(name));
        GetPlayerName(params[0], pname, sizeof(pname));
        VipInfo[params[0]][Vip] = params[1];
       
        format(string, sizeof(string), "{FFCC33}Ai primit {FF0000}VIP {FFCC33}de nivel: {FF0000}%s {FFCC33}de la Admin-ul: {FF0000}%s {FFCC33}!", Level, name);
        SendClientMessage(ID, -1, string);
        format(string, sizeof(string), "{FFCC33}L-ai facut pe {FF0000}%s {FFCC33}VIP de nivel: {FF0000}%s {FFCC33}!", pname, Level);
        SendClientMessage(playerid, -1, string);
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nu esti RCON!");
    }
    return true;
}
Reply


Messages In This Thread
"Unknow command" [+REP] - by HY - 30.11.2014, 16:28
Re: "Unknow command" [+REP] - by JuanStone - 30.11.2014, 16:35
Re: "Unknow command" [+REP] - by HY - 30.11.2014, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)