SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 15/03/2019, 12:14 AM   #1
Cauezin
Huge Clucker
 
Cauezin's Avatar
 
Join Date: Feb 2018
Location: Brasil - Rio de Janeiro
Posts: 360
Reputation: 12
Default AdminJail

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
Attached Images
File Type: jpg sa-mp-341.jpg (200.2 KB, 10 views)
__________________
the last person you want to be.
Cauezin is offline   Reply With Quote
Old 15/03/2019, 12:37 AM   #2
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,238
Reputation: 316
Default Re: AdminJail

Use return 1;
ipsLuan is offline   Reply With Quote
Old 15/03/2019, 12:39 AM   #3
Cauezin
Huge Clucker
 
Cauezin's Avatar
 
Join Date: Feb 2018
Location: Brasil - Rio de Janeiro
Posts: 360
Reputation: 12
Default Re: AdminJail

Quote:
Originally Posted by ipsLuan View Post
Use return 1;
Não foi.
__________________
the last person you want to be.
Cauezin is offline   Reply With Quote
Old 15/03/2019, 01:29 AM   #4
willttoonn
Gangsta
 
willttoonn's Avatar
 
Join Date: Nov 2011
Location: Brazil
Posts: 859
Reputation: 60
Default Re: AdminJail

Coloca no OnPlayerText(playerid, text[]).
__________________
Sometimes a captain has to make the unpopular call because that's his responsibility
willttoonn is offline   Reply With Quote
Old 15/03/2019, 01:32 AM   #5
Cauezin
Huge Clucker
 
Cauezin's Avatar
 
Join Date: Feb 2018
Location: Brasil - Rio de Janeiro
Posts: 360
Reputation: 12
Default Re: AdminJail

Já tem lá.
__________________
the last person you want to be.
Cauezin is offline   Reply With Quote
Old 15/03/2019, 01:27 PM   #6
JeffSantos2
Big Clucker
 
JeffSantos2's Avatar
 
Join Date: Sep 2013
Location: Curitiba-PR-BR
Posts: 83
Reputation: 12
Default Re: AdminJail

Usa o bloqueio na public OnPlayerCommandReceived
JeffSantos2 is offline   Reply With Quote
Old 15/03/2019, 10:20 PM   #7
Cauezin
Huge Clucker
 
Cauezin's Avatar
 
Join Date: Feb 2018
Location: Brasil - Rio de Janeiro
Posts: 360
Reputation: 12
Default Re: AdminJail

Quote:
Originally Posted by JeffSantos2 View Post
Usa o bloqueio na public OnPlayerCommandReceived
Crlh, eu te amo, vou até dar rep.
__________________
the last person you want to be.
Cauezin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command of adminjail Zeus666 Scripting Help 12 30/06/2016 09:41 PM
[Map] [MAP]adminjail / jail map falenone1 Maps 10 23/04/2013 09:48 PM


All times are GMT. The time now is 03:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.