Thread: Help me
View Single Post
Old 20/03/2017, 04:25 PM   #3
RyderX
Banned
 
Join Date: Oct 2016
Location: Lebanon,Beirut Rank: SA-MP Scripter
Posts: 564
Reputation: 53
Default Re: Help me

Here you go
PHP Code:
#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

RyderX is offline   Reply With Quote