stats help
#1

script
pawn Код:
format(string, sizeof(string), " {FFB300}Name:%s \n\nAdminlevel: %d", Name,PlayerData[playerid][AdminLevel]);
How do i make if admin level 0, it shows "0 (Not Admin)", level 1 "1 (Server Moderator)", level 2 "2 (Global Moderator)", level 3 "3 (Administrator)", Level 4 "4 (Server Owner)"??
Reply
#2

pawn Код:
new AdminRank[30];

switch (PlayerData[playerid][AdminLevel])
{
    case 0: format(AdminRank, 30, "(Not Admin)");
    case 1: format(AdminRank, 30, "(Server Moderator)");
    case 2: format(AdminRank, 30, "(Global Moderator)");
    case 3: format(AdminRank, 30, "(Administrator)");
    case 4: format(AdminRank, 30, "(Server Owner)");
}
format(string, sizeof(string), " {FFB300}Name:%s \n\nAdminlevel: %d %s", Name,PlayerData[playerid][AdminLevel], AdminRank);
Reply
#3

thanks
Reply
#4

Quote:
Originally Posted by tanush
Посмотреть сообщение
thanks
Can we see a snippet ?
Can help you without.
Reply
#5

dude he already helped me -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)