SA-MP Forums Archive
Lux Admin // Send Admin in front of name - 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: Lux Admin // Send Admin in front of name (/showthread.php?tid=252186)



Lux Admin // Send Admin in front of name - sMog. - 30.04.2011

How to edit this like it shows:
Level 1:
[Basic Moderator]sMog:Hello

Level 2:
[Moderator]sMog:Hello

Level 3:
[Master Moderator]sMog:Hello

Level 4:
[Administrator]sMog:Hello

Level 5:
[Master Administrator]sMog:Hello

Level 6:
[Owner]sMog:Hello

PHP код:
    #if ADM_InMSG == true
    
if (AccInfo[playerid][Hide] == 0)
    {
    if(
AccInfo[playerid][Level] > 0)
    {
    new 
str3[256];
    
format(str3256"(Admin): %s"text);
    for(new 
gz=0;gz<200;gz++)
    if(
IsPlayerConnected(gz))
    
SendPlayerMessageToPlayer(gzplayeridstr3);
    else 
SendPlayerMessageToPlayer(gzplayeridtext);
    }
    return 
0;
    }
    
#endif