AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Zombie (admin only) (https://forums.alliedmods.net/showthread.php?t=272921)

romi 10-09-2015 11:45

[Help] Zombie (admin only)
 
Hello ,, i have a basebuilder server and when i open zm classes whatever admin access it be it will show behind zombie name (Admin Only) ,, and i was wondering if you could make for an certain acc it shows an certain message for example acc: H = (VIP Only) or acc: A = (Head Only) Like Photo in the link: http://imgur.com/jRDa3oW
Tnx,, here is the part of bb plugin:
PHP Code:

public show_zclass_menu(id,offset)
{
    if(
offset<0offset 0

    
new keyscurnummenu[512], szCache1[32], szCache2[32], iCache3
    
for(new i=offset;i<g_iZClasses;i++)
    {
        
ArrayGetString(g_zclass_nameiszCache1charsmax(szCache1))
        
ArrayGetString(g_zclass_infoiszCache2charsmax(szCache2))
        
iCache3 ArrayGetCell(g_zclass_admini)
        
        
// Add to menu
        
if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d. %s %s \r%s"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        else
            
format(menu,511,"%s^n\w%d. %s \y%s \r%s"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        
        
g_iMenuOptions[id][curnum] = i
        keys 
+= (1<<curnum)
    
        
curnum++
        
        if(
curnum==8)
            break;
    }

    
format(menu,511,"\ySelect Your Class:^n\w%s^n"menu)
    if(
curnum==&& offset<12)
    {
        
keys += (1<<8)
        
format(menu,511,"%s^n\w9. Next",menu)
    }
    if(
offset)
    {
        
keys += (1<<9)
        
format(menu,511,"%s^n\w0. Back",menu)
    }

    
show_menu(id,keys,menu,-1,"ZClassSelect")




All times are GMT -4. The time now is 22:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.