Rank for a specific person
#5

Let's say community owner is level 7.
and the admin var is pAdmin[MAX_PLAYERS], if you have an enum or something use enumname[playerid][pAdmin]
pawn Код:
public OnPlayerConnect(playerid)
{
    if(pAdmin[playerid] == 7)
    {
        new string[218];
        format(string, sizeof(string), "Community owner %s joined the server.", GetName(playerid));
        SendClientMessageToAll(-1, string);
    }
    return 1;
}
//add this anywhere in your script
stock GetName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}
Reply


Messages In This Thread
Rank for a specific person - by Excelize - 11.05.2013, 08:34
Re: Rank for a specific person - by iggy1 - 11.05.2013, 08:55
Re: Rank for a specific person - by Excelize - 11.05.2013, 09:15
Re: Rank for a specific person - by _chimera_ - 11.05.2013, 11:06
Re : Rank for a specific person - by Rayan_black - 11.05.2013, 11:31
Re: Rank for a specific person - by CreativityLacker - 11.05.2013, 12:50
Re: Rank for a specific person - by Excelize - 11.05.2013, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)