#3

PHP код:
if(strcmp(cmd"/leaders"true) == || strcmp(cmd"/lideri"true) == 0
    { 
        new 
string[120],bigstr[600],bool:is=false
        for(new 
0MAX_PLAYERSi++) 
        { 
            if(
PlayerInfo[i][pLeader] || PlayerInfo[i][pMember]) 
            { 
                if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 1string="{0000FF}Police Departament{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 2string="{0000FF}National Guard{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 3string="{FF6347}Paramedic{FFFFFF}"); 
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 4string="{373837}The Russian Mafia{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 5string="{1C7D19}Grove Street{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 6string="{F2B407}Los Vagos{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 7string="{DDA0DD}News Reporter{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 8string="{FFFF00}Taxi Cab Company{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 9string="{00FFFF}School Instructor{FFFFFF}");
                else if(
PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10string="{FFDEAD}Tow Car Company{FFFFFF}");
                
GetPlayerName(igiveplayersizeof(giveplayer)); 
                
format(stringsizeof(string), "Leader %s: %s[ID: %d]\n",idtext,giveplayer,i);  
                
strcat(bigstr,string);
                if(
is==false)is=true;
            } 
        } 
        if(
is==false) return SCM(playerid, -1"* Nu sunt lideri online!"); 
        
ShowPlayerDialog(playerid77DIALOG_STYLE_MSGBOX"Leaders:",bigstr,"Ok","");
        return 
1
    } 
Reply


Messages In This Thread
Help - by Edw - 17.06.2015, 20:23
Re: Help - by Edw - 18.06.2015, 06:47
Re: Help - by CodeStyle175 - 18.06.2015, 07:15

Forum Jump:


Users browsing this thread: 1 Guest(s)