Help me
#3

Here you go
PHP код:
#pragma unused params 
        
new Counti
        new 
string[128]; 
        new 
adminname[MAX_PLAYER_NAME]; 
        
SendClientMessage(playeridgreen" "); 
        
SendClientMessage(playeridgreen"_________ |- Online Vip Member -| _________"); 
        
SendClientMessage(playeridgreen" "); 
        for(
0MAX_PLAYERSi++) 
        if(
IsPlayerConnected(i) && AccInfo[i][pVip] > 0
        
Count++; 
        for(
0MAX_PLAYERSi++) 
            if(
IsPlayerConnected(i) && AccInfo[i][pVip] > 0
            { 
                if(
AccInfo[i][pVip] > 0
                { 
                    switch(
AccInfo[i][pVip]) 
                    { 
                    case 
1AccType "Silver"
                    case 
2AccType "Gold"
                    case 
3AccType "Premium"
                    } 
                } 
                 
GetPlayerName(iadminnamesizeof(adminname)); 
                { 
                    
format(stringsizeof(string), "%s (Id:%i) | %s",PlayerName2(i),i,AccType); 
                    
SendClientMessage(playerid,yellow,string); 
                } 
            } 
            if(
Count == 0
            return 
SendClientMessage(playerid,red"No players have VIP Account!"); 
            
SendClientMessage(playeridgreen" _______________________________________"); 
            return 
1

Reply


Messages In This Thread
Help me - by Langky - 20.03.2017, 15:19
Re: Help me - by Mencent - 20.03.2017, 15:23
Re: Help me - by RyderX - 20.03.2017, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)