SA-MP Forums Archive
stats help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stats help (/showthread.php?tid=240493)



stats help - tanush - 15.03.2011

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)"??


Re: stats help - PowerPC603 - 15.03.2011

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);



Re: stats help - tanush - 16.03.2011

thanks


Re: stats help - Stigg - 16.03.2011

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


Re: stats help - tanush - 16.03.2011

dude he already helped me -.-