Problem
#9

Well its same with all the commands but I will post one here:
pawn Код:
if (strcmp("/admins",cmdtext,true) == 0)
    {
        SendClientMessage(playerid,red,"Admins online:");
        if(IsPlayerNPC(playerid))
        {
            SendClientMessage(playerid,red,"-");
            return 0;
        }
        for(new i = 0; i < MAX_PLAYERS; i++)
        if(GetPVarInt(playerid,"Adminlevel")==1)
        {
        new string[256];
        format(string,256,"{F5FF00}[Trial Administrator]-{00F5FF}%s",PlayerName(i));
        SendClientMessage(playerid,red,string);
        return 1;
        }
        else if(GetPVarInt(playerid,"Adminlevel")==2)
        {
        new string2[256];
        format(string2,256,"{F5FF00}[General Administrator]-{00F5FF}%s",PlayerName(i));
        SendClientMessage(playerid,red,string2);
        return 1;
        }
        else if(GetPVarInt(playerid,"Adminlevel")==3)
        {
        new string3[256];
        format(string3,256,"{F5FF00}[Senior Administrator]-{00F5FF}%s",PlayerName(i));
        SendClientMessage(playerid,red,string3);
        return 1;
        }
        else if(GetPVarInt(playerid,"Adminlevel")==4)
        {
        new string4[256];
        format(string4,256,"{F5FF00}[Lead Administrator]-{00F5FF}%s",PlayerName(i));
        SendClientMessage(playerid,red,string4);
        return 1;
        }
        else if(GetPVarInt(playerid,"Adminlevel")==5)
        {
        new string5[256];
        format(string5,256,"{F5FF00}[Head Administrator]-{00F5FF}%s",PlayerName(i));
        SendClientMessage(playerid,red,string5);
        return 1;
}
}
Reply


Messages In This Thread
Problem - by zombieking - 09.11.2011, 16:35
Re: Problem - by Stigg - 09.11.2011, 16:38
Re: Problem - by zombieking - 09.11.2011, 16:43
Re: Problem - by zombieking - 09.11.2011, 17:09
Re: Problem - by SmiT - 09.11.2011, 17:11
Re : Re: Problem - by decondelite - 09.11.2011, 17:14
Re: Problem - by zombieking - 09.11.2011, 17:15
Re: Problem - by Kostas' - 09.11.2011, 17:21
Re: Problem - by zombieking - 09.11.2011, 17:23
Re : Problem - by decondelite - 09.11.2011, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)