SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/04/2012, 12:50 AM   #1
vitorzero3um
Little Clucker
 
Join Date: Jul 2010
Posts: 12
Reputation: 0
Post [Ajuda] Bloquear os carros pelo ID.

Bom eu uso o fs lux admin e quero saber se tem como eu bloquiar quando o player usa o /car os carros : rhino, hydra, hunter pelo ID.. Alguem pode me ajudar? desde já agradesso
vitorzero3um is offline   Reply With Quote
Old 03/04/2012, 01:01 AM   #2
[STR]Matrix
Big Clucker
 
[STR]Matrix's Avatar
 
Join Date: Feb 2012
Posts: 128
Reputation: 0
Default Re: [Ajuda] Bloquear os carros pelo ID.

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 520,432,425:
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,-1,"[STR] » O uso deste veiculo não esta sendo permitido por enquanto");
            }
        }
    }
    return true;
}

ta ae mano ^.^ Creditos desse codigo zbt
__________________


[0.3e]: 200.98.130.98:7777

[STATUS]: OFFLINE :´(


[STR]Matrix is offline   Reply With Quote
Old 03/04/2012, 01:10 AM   #3
vitorzero3um
Little Clucker
 
Join Date: Jul 2010
Posts: 12
Reputation: 0
Default Re: [Ajuda] Bloquear os carros pelo ID.

C:\Users\VITOR\Desktop\FMDAdmin3.pwn(8363) : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Está dando esté erro..
pode me ajudar?
vitorzero3um is offline   Reply With Quote
Old 03/04/2012, 01:17 AM   #4
jefe10
Big Clucker
 
jefe10's Avatar
 
Join Date: Oct 2011
Location: Lages SC
Posts: 89
Reputation: 5
Default Re: [Ajuda] Bloquear os carros pelo ID.

Pq vc ja tem um public OnPlayerStateChange so apaga uma delas
__________________
Nick: JeFeRodrigues

Te ajudei então me da Reputation !

Acesse: SampKnD

Last edited by jefe10; 06/04/2012 at 04:02 PM.
jefe10 is offline   Reply With Quote
Old 03/04/2012, 02:54 AM   #5
[STR]Matrix
Big Clucker
 
[STR]Matrix's Avatar
 
Join Date: Feb 2012
Posts: 128
Reputation: 0
Default Re: [Ajuda] Bloquear os carros pelo ID.

Quote:
Originally Posted by vitorzero3um View Post
C:\Users\VITOR\Desktop\FMDAdmin3.pwn(8363) : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Está dando esté erro..
pode me ajudar?
vc vai econtrar um codigo + ou - assim ai vc vai e apaga

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}
__________________


[0.3e]: 200.98.130.98:7777

[STATUS]: OFFLINE :´(


[STR]Matrix is offline   Reply With Quote
Old 03/04/2012, 01:45 PM   #6
kinhobryant
Huge Clucker
 
kinhobryant's Avatar
 
Join Date: Jan 2012
Posts: 460
Reputation: 13
Default Re: [Ajuda] Bloquear os carros pelo ID.

Public OnplayerKeyStateChange '-'
kinhobryant 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
[AJUDA] Bloqueando o /sairdm Fora da Arena .FuneraL. Português/Portuguese 0 24/03/2012 03:14 PM
[AJUDA]Comando Não Bloqueando (simples. lyllrasta Português/Portuguese 5 08/01/2012 07:12 PM
[DICA] Bloqueando 'malbots' (con, aux etc.) [VGS]Protioso Português/Portuguese 10 08/11/2011 07:41 PM
[DUVIDA] Bloqueando Menssagens Mr_Taxi Português/Portuguese 2 16/11/2010 08:48 PM
[Ajuda] Bloqueando cmd andmeida10 Português/Portuguese 8 14/02/2010 08:21 AM


All times are GMT. The time now is 05:00 AM.


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