SA-MP Forums Archive
[Pedido] Sistema de olhar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Sistema de olhar (/showthread.php?tid=622553)



Sistema de olhar - henriqueTL - 23.11.2016

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;




Re: Sistema de olhar - henriqueTL - 24.11.2016

alguem para me ajudar pfv.


Re: Sistema de olhar - nasser - 24.11.2016

Definitivamente nгo entendi esse "sistema de olhar" nгo tem nenhuma relaзгo com esse comando... tem certeza q esse print й o correto? eu conheзo isso como status.. e o comando й para observar players isso geralmente й pros admins espiarem os hackers ,-.


Re: Sistema de olhar - social - 24.11.2016

Quote:
Originally Posted by nasser
Посмотреть сообщение
Definitivamente nгo entendi esse "sistema de olhar" nгo tem nenhuma relaзгo com esse comando... tem certeza q esse print й o correto? eu conheзo isso como status..
parece que e tipo um sistema de tv que tu ver o player ai aparece a textdraw com as informaзoes vida colete balas etc...


Re: Sistema de olhar - nasser - 24.11.2016

Quote:
Originally Posted by social
Посмотреть сообщение
parece que e tipo um sistema de tv que tu ver o player ai aparece a textdraw com as informaзoes vida colete balas etc...
Mбs observe que quando a pessoa espia o player nгo se relaciona nada com a textdraw q mostra as informaзхes..


Re: Sistema de olhar - Relaxed - 24.11.2016

Creio que entendi como vocк quйr.
De vez usar SendClientMessage , para informar os dados, que seria assim + / - assim:
PHP код:
format(stringsizeof(string), "Level: %d"level);
    
SCM(playerid0xE3E3E3FF,string); 
Vocк quйr que mostre em textdraw?


Re: Sistema de olhar - henriqueTL - 24.11.2016

Relaxed E Asim msm poderia me ajuda nao pfv.


Re: Sistema de olhar - henriqueTL - 25.11.2016

alquem poderia me ajudar ?


Re: Sistema de olhar - henriqueTL - 26.11.2016

que isso alquem poderia me ajudar nao pfv.


Respuesta: Re: Sistema de olhar - SammyJ - 26.11.2016

Quote:
Originally Posted by henriqueTL
Посмотреть сообщение
que isso alquem poderia me ajudar nao pfv.
Acho meio difнcil alguйm fazer isso para vocк, estude um pouco sobre.

https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw

Tutorial