[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
#2

alguem para me ajudar pfv.
Reply
#3

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 ,-.
Reply
#4

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...
Reply
#5

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..
Reply
#6

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?
Reply
#7

Relaxed E Asim msm poderia me ajuda nao pfv.
Reply
#8

alquem poderia me ajudar ?
Reply
#9

que isso alquem poderia me ajudar nao pfv.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)