SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 17/06/2012, 11:15 AM   #1
StrikeR_OwneR
Big Clucker
 
Join Date: Mar 2012
Posts: 58
Reputation: 1
Default [Ajuda] Comando Simples

Bom dia Galera, To com uma duvida chata
Presizo usar o

IsPlayerInVehicle

Quero que o player so possa digitar o comando dentro de um determinado veiculo, Por ID do Modelo

Alguem pode me ajudar? Uso strcmp

Grato !
StrikeR_OwneR is offline   Reply With Quote
Old 17/06/2012, 11:23 AM   #2
DrTHE
High-roller
 
DrTHE's Avatar
 
Join Date: Feb 2011
Location: Belo Horizonte, Brazil
Posts: 1,151
Reputation: 150
Default Re: [Ajuda] Comando Simples

qual o modelo?

pawn Code:
new carro = CreateVehicle...//fora da CallBack de comandos

if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x00FF00AA,"ERRO: Fora de um carro");
if(carro == GetPlayerVehicleID(playerid))
{
...

}
DrTHE is offline   Reply With Quote
Old 17/06/2012, 11:23 AM   #3
Dolby
High-roller
 
Dolby's Avatar
 
Join Date: Aug 2011
Location: Brazil - GO
Posts: 2,900
Reputation: 746
Default Re: [Ajuda] Comando Simples

pawn Code:
if(!IsPlayerInVehicle(playerid,50)) return SendClientMessage(playerid,-1,"Você não esta no veiculo de ID 50!");
Obs:Vehicleid != Modelid.
Dolby is offline   Reply With Quote
Old 17/06/2012, 11:32 AM   #4
StrikeR_OwneR
Big Clucker
 
Join Date: Mar 2012
Posts: 58
Reputation: 1
Default Respuesta: [Ajuda] Comando Simples

Vou testar aqui, Ja falo para vocês, Rapido vocês em

@ Edit, Funfo, Vlw ae
StrikeR_OwneR 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] Comando Simples GuiihCamargo Português/Portuguese 8 06/03/2012 12:41 AM
[AJUDA]Comando Não Bloqueando (simples. lyllrasta Português/Portuguese 5 08/01/2012 07:12 PM
[AJUDA] Comando Simples GustavoBonomo Português/Portuguese 22 16/11/2011 09:06 PM
[Ajuda] Comando simples arakuta Português/Portuguese 3 20/07/2011 01:45 PM
[Ajuda]Comando Simples hudsonramos10 Português/Portuguese 18 09/04/2011 05:16 PM


All times are GMT. The time now is 06:39 PM.


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