[Ajuda] Carros PROF - 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] Carros PROF (
/showthread.php?tid=676810)
Carros PROF -
oRaphael - 20.06.2020
Quando eu nгo sou da profissгo definida eu ainda consigo entrar no veiculo, alguem sabe resolver?
PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(VDaOrg(HellAngels, 0, 12) && pStatus[playerid][Organizacao] == 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Erro, "[ERRO] Voce nao e da Hell Angels.");
}
return true;
}
Re: Carros PROF -
DelK - 20.06.2020
Quote:
Originally Posted by oRaphael
Quando eu nгo sou da profissгo definida eu ainda consigo entrar no veiculo, alguem sabe resolver?
PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(VDaOrg(HellAngels, 0, 12) && pStatus[playerid][Organizacao] == 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Erro, "[ERRO] Voce nao e da Hell Angels.");
}
return true;
}
|
Mostra a funзгo VDaOrg
Re: Carros PROF -
oRaphael - 20.06.2020
#define VDaOrg(%0,%1,%2) GetPlayerVehicleID(playerid) >= %0[%1] && GetPlayerVehicleID(playerid) <= %0[%2]