Can u help me ?
#1

Can i get a small help i had Administrator title to every admins while talking in OOC Channel like if i am admin and i say hey then like this (( Admin Imperor:Hey )) But i want every admins name sud be displayed as their post like if i am a head admin then it should say (( Head Admin Imperor: Hey )).I am Confused in [pAdmin] == and [pAdmin] >=
So help me heres the Code:
Код:
	else if(PlayerInfo[playerid][pAdmin] == 1337)
	{
		new string[128];
		format(string, sizeof(string), "(( {33CCFF}Head Admin{E0FFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
		OOCOff(COLOR_OOC,string);
	}
Reply
#2

OMG NoOne For Help?
Reply
#3

Do it like this
pawn Код:
new rank[30];

switch(PlayerInfo[playerid][pAdmin])
{
    case 1: rank = "Moderator"; //if he is level 1
    case 2: rank = "Head-Moderator"; //if he is level 2
    // ...
    case 1337: rank = "Head-Administrator"; //if he is level 1337
    // you just put rnk of each level inside " "
}
new string[128];
format(string, sizeof(string), "(( {33CCFF}%s{E0FFFF} %s: %s ))", rank, GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)