[Pedido] Sistema de olhar
#1

Bom primeiro bom dia boa tarde boa noite eu queria ajudar para editar o comando de olhar q esta abaixo e deixa como esta no print alquem poderia me ajudar
PHP код:
dcmd_olhar(playeridparams[])  // exemplo de comando com 1 parвmetro
{
    if(
Player[playerid][pAdmin] < 1)
        return 
0// player nao tem lvl suficiente
    
else
    {
        new 
tmp[256], idxspecid;
        
tmp strtok(paramsidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playeridCOR_ERRO"[ERRO] /olhar 'ID'");
            return 
1;
        }
        if(
strcmp(tmp"off"true)==0)
        {
            if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING )
            {
                
StopSpectate(playerid);
                return 
1;
            }
            else
            {
                return 
SendClientMessage(playeridCOR_ERRO"LOG: [ERRO] Vocк nгo estб olhando ninguйm.");
            }
        }
        if(!
IsNumeric(params))
            
specid ReturnPlayerID(params);
        else
        
specid strval(params);
        if(!
IsPlayerConnected(specid)) {
            
SendClientMessage(playeridCOR_GREY"[ERRO] Jogador nгo encontrado.");
            return 
1;
        }
        else if(
specid == playerid) {
            
SendClientMessage(playeridCOR_GREY"LOG: [ERRO] ID Invбlido.");
            return 
1;
        }
        else if(
GetPlayerState(specid) == PLAYER_STATE_SPECTATING && Player[specid][gSpectateID] != INVALID_PLAYER_ID) {
            
SendClientMessage(playeridCOR_GREY"LOG: [ERRO] Vocй escolhido O Jogador %s para entrar em modo espectando.");
            return 
1;
        }
        else if(
GetPlayerState(specid) != && GetPlayerState(specid) != && GetPlayerState(specid) != 3) {
            
SendClientMessage(playeridCOR_GREY"LOG: [ERRO] O jogador nгo estб jogando.");
            return 
1;
        }
        if(
GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
        {
            
SaveVariables(playerid);
            
SendClientMessage(playeridCOR_RED"ADM:» Vocк esta estб de espectador no jogador %s (id: %d) /olhar off.",playeridgetPName(playerid));
        }
        
StartSpectate(playeridspecid);
    }
    return 
1;

Reply


Messages In This Thread
Sistema de olhar - by henriqueTL - 23.11.2016, 20:55
Re: Sistema de olhar - by henriqueTL - 24.11.2016, 17:23
Re: Sistema de olhar - by nasser - 24.11.2016, 21:47
Re: Sistema de olhar - by social - 24.11.2016, 21:51
Re: Sistema de olhar - by nasser - 24.11.2016, 21:53
Re: Sistema de olhar - by Relaxed - 24.11.2016, 21:57
Re: Sistema de olhar - by henriqueTL - 24.11.2016, 22:01
Re: Sistema de olhar - by henriqueTL - 25.11.2016, 15:36
Re: Sistema de olhar - by henriqueTL - 26.11.2016, 15:22
Respuesta: Re: Sistema de olhar - by SammyJ - 26.11.2016, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)