SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/06/2020, 02:49 AM   #1
oRaphael
Huge Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 377
Reputation: 3
Default Carros PROF

Quando eu não sou da profissão definida eu ainda consigo entrar no veiculo, alguem sabe resolver?

PHP Code:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER)
    {
        if(
VDaOrg(HellAngels012)   &&  pStatus[playerid][Organizacao] == 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playeridC_Erro"[ERRO] Voce nao e da Hell Angels.");
    }
    return 
true;

__________________
Shooter - Bob Lee Swagger
https://forum.sa-mp.com/showthread.php?p=4157259#post4157259
oRaphael is offline   Reply With Quote
Old 20/06/2020, 11:05 AM   #2
DelK
Huge Clucker
 
DelK's Avatar
 
Join Date: Apr 2017
Location: Brazil
Posts: 458
Reputation: 40
Default Re: Carros PROF

Quote:
Originally Posted by oRaphael View Post
Quando eu não sou da profissão definida eu ainda consigo entrar no veiculo, alguem sabe resolver?

PHP Code:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER)
    {
        if(
VDaOrg(HellAngels012)   &&  pStatus[playerid][Organizacao] == 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playeridC_Erro"[ERRO] Voce nao e da Hell Angels.");
    }
    return 
true;

Mostra a função VDaOrg
__________________
DelK is offline   Reply With Quote
Old 20/06/2020, 12:45 PM   #3
oRaphael
Huge Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 377
Reputation: 3
Default Re: Carros PROF

#define VDaOrg(%0,%1,%2) GetPlayerVehicleID(playerid) >= %0[%1] && GetPlayerVehicleID(playerid) <= %0[%2]
__________________
Shooter - Bob Lee Swagger
https://forum.sa-mp.com/showthread.php?p=4157259#post4157259
oRaphael 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] Prof Policial MorteAmerica Português/Portuguese 7 18/06/2017 10:27 PM
[Ajuda] Prof petroleiro vitere Português/Portuguese 10 04/05/2013 01:36 AM
[Ajuda] Logar prof Dana_scully Português/Portuguese 5 26/12/2012 10:16 PM
[Projeto] Prof petroleiro vitere Português/Portuguese 11 22/10/2012 03:20 PM
[DUV]Inicio PRof chapolin1994 Português/Portuguese 7 21/01/2010 08:00 PM


All times are GMT. The time now is 08:28 PM.


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