SA-MP Forums Archive
[Ajuda] AdminJail - 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: [Ajuda] AdminJail (/showthread.php?tid=664892)



AdminJail - Cauezin - 15.03.2019

Eu fiz um sistema de aviso, com 3 avisos o player й preso, estб tudo bem atй ai, porйm, na prisгo era pra ele ser proibido de falar e de executar comandos, ele й nгo consegue falar, mas consegue executar comandos, olha o cуdigo.

PHP Code:

public OnPlayerCommandPerformed(playeridcmd[], params[], resultflags)
{
    if(
Player[playerid][pPresoStaff] == 1) {
        
SendClientMessage(playerid0xFF0000AA"| INFO | Vocк estб preso, nгo pode executar comandos. ");
        return 
0;
    }
    if(
result == -1)
    {
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Unknown command.");
        return 
0;
    }
    return 
1;

ATENЗГO: Eu uso Pawn.CMD


Re: AdminJail - ipsLuan - 15.03.2019

Use return 1;


Re: AdminJail - Cauezin - 15.03.2019

Quote:
Originally Posted by ipsLuan
View Post
Use return 1;
Nгo foi.


Re: AdminJail - willttoonn - 15.03.2019

Coloca no OnPlayerText(playerid, text[]).


Re: AdminJail - Cauezin - 15.03.2019

Jб tem lб.


Re: AdminJail - JeffSantos2 - 15.03.2019

Usa o bloqueio na public OnPlayerCommandReceived


Re: AdminJail - Cauezin - 15.03.2019

Quote:
Originally Posted by JeffSantos2
View Post
Usa o bloqueio na public OnPlayerCommandReceived
Crlh, eu te amo, vou atй dar rep.