Mudando comando principal
#1

PHP код:
    if (strcmp(cmd"/irfila"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USO: /irfila [playerid/Parte-do-Nick]");
                return 
1;
            }
            new 
Float:plocx,Float:plocy,Float:plocz;
            new 
plo;
            
plo ReturnUser(tmp);
            if (
IsPlayerConnected(plo))
            {
                if(
plo != INVALID_PLAYER_ID)
                {
                    new 
nome[24];
                    
GetPlayerName(playeridnomesizeof nome);
                    if(
PlayerInfo[playerid][pAdmin] >= || strfind(nomeADMPLAYERtrue) == || strfind(nomeADMPLAYER2true) == )
                    {
                        if(
PlayerInfo[plo][pAge] == 1){
                            if(
Spectate[playerid] != 255)
                            {
                                
Spectate[playerid] = 256;
                            }
                            
GetPlayerPos(ploplocxplocyplocz);
                            if(
PlayerInfo[plo][pInt] > 0)
                            {
                                
SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                                
PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                                
PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                            }
                            if(
PlayerInfo[playerid][pInt] == 0)
                            {
                                
SetPlayerInterior(playerid,0);
                            }
                            if(
plocz 530.0 && PlayerInfo[plo][pInt] == 0//the highest land point in sa = 526.8
                            
{
                                
SetPlayerInterior(playerid,1);
                                
PlayerInfo[playerid][pInt] = 1;
                            }
                            if (
GetPlayerState(playerid) == 2)
                            {
                                new 
tmpcar GetPlayerVehicleID(playerid);
                                
SetVehiclePos(tmpcarplocxplocy+4plocz);
                                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                
SetPlayerPos(playerid,plocx,plocy+2plocz);
                            }
                            
GetPlayerName(plogiveplayer,256);
                            
GetPlayerName(playeridsendername,256);
                               
format(stringsizeof(string), "[Info] Vocк foi atender ao chamado de %s."giveplayer);
                                
SendClientMessage(playeridCOLOR_WHITEstring);
                                
format(stringsizeof(string), "[Info] O admin %s, veio para te atender."sendername);
                                
SendClientMessage(ploCOLOR_WHITEstring);
                            new 
string2[256];
                            
format(string2sizeof(string), "[FILA] O Admin %s foi atender o player %s."giveplayer,sendername);
                            
ABroadCast(COLOR_KICKBAN,string2,1);
                            
PlayerInfo[plo][pAge] = 0;
                           }else{
                               
SendClientMessage(playeridCOLOR_GRAD1"O player nгo estб na fila.");
                           }
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб autorizado a usar este comando.");
                    }
                }
            }
            else
            {
                
format(stringsizeof(string), "   %d nгo й um player ativo."plo);
                
SendClientMessage(playeridCOLOR_GRAD1string);
            }
        }
        return 
1;
    } 
pessoal em veis deu dar /irfila e o id da pessoa

teria como eu faser /irproximo e sem presisar escolher o id ?

o teria que mudar todo meu sistema de atendimento ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)