*** This topic title is not descriptive.
#1

pawn Код:
CMD:setbloodline(playerid, params[])
{
    new id, level, string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(id, name, MAX_PLAYER_NAME);
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, -1, "Usage: /setbloodline [id] [level]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "SERVER: Player ID not connected.");
        if(level > 5) return SendClientMessage(playerid, -1, "SERVER: BL Level is too high. [0/5]");
        SendClientMessage(playerid, -1, "SERVER: You have successfully set the target id to a Bloodline Member.");
        format(string, sizeof(string), "BLOODLINE ANNOUNCE: %s has been promoted to Bloodline Member Level %d", name, level);
        SendClientMessageToAll(0xD40412FF, string);
        GameTextForPlayer(id, "~g~Promoted", 3000, 0);
        PlayerInfo[playerid][pBL] = level;
    }
    else
    {
        SendClientMessage(playerid, -1, "SERVER: You need to be a level 4 admin.");
    }
    return 1;
}
When I joined in the server and /setbloodline to the different id. Not me, it appears like this:
Код:
BLOODLINE ANNOUNCE: Deaglez has been promoted to bloodline member level 5
But why is it my name? I cant set the others to be a Bloodline member??
Reply


Messages In This Thread
*** This topic title is not descriptive. - by Deaglez - 06.11.2012, 09:14
Re: The fuck am I doing wrong?? - by ViniBorn - 06.11.2012, 09:19
Re: The fuck am I doing wrong?? - by GordonP - 06.11.2012, 09:19
Re: The fuck am I doing wrong?? - by Deaglez - 06.11.2012, 09:25
Re: The fuck am I doing wrong?? - by JaKe Elite - 06.11.2012, 09:26
Re: The fuck am I doing wrong?? - by Deaglez - 06.11.2012, 09:48

Forum Jump:


Users browsing this thread: 2 Guest(s)