PDA

View Full Version : [HELP]Faction Vehicles


Orhun_Kaya
05/05/2012, 04:33 AM
Hello guys I create new faction system but all fact vehicles bugged.Please little help //================================[LSPD ARACLAR]================================
new LSPD = GetPlayerVehicleID(playerid);
if(LSPD == lspdfbi1, lspdfbi2, lspdfbi3, lspdfbi4, lspdsultan1, lspdsultan2, lspdsultan3, lspdsultan4, police1, police2, police3, police4,hpv1, hpv2, hpv3, hpv4)
{
if(PlayerInfo[playerid][pFaction] != 1)
{
SendClientMessage(playerid,COLOR_GREY,"Bu arac LSPD'ye aittir!");
RemovePlayerFromVehicle(playerid);
}
}
//================================[FDLS ARACLAR]================================
new FDLS = GetPlayerVehicleID(playerid);
if(FDLS == fdlsambulance1, fdlsambulance2, fdlsambulance3, fdlsfdranger1, fdlsfdranger2, fdlsfslsf1)
{
if(PlayerInfo[playerid][pFaction] != 2)
{
SendClientMessage(playerid,COLOR_GREY,"Bu arac FDLS'ye aittir!");
RemovePlayerFromVehicle(playerid);
}
}
//================================================== ============================

aRoach
05/05/2012, 06:55 AM
if(LSPD == lspdfbi1, lspdfbi2, lspdfbi3, lspdfbi4, lspdsultan1, lspdsultan2, lspdsultan3, lspdsultan4, police1, police2, police3, police4,hpv1, hpv2, hpv3, hpv4)

to

if(LSPD == lspdfbi1 || LSPD == lspdfbi2 || LSPD == lspdfbi3 || LSPD == lspdfbi4 || LSPD == lspdsultan1 || LSPD == lspdsultan2 || LSPD == lspdsultan3 || LSPD == lspdsultan4 || LSPD == police1 || LSPD == police2 || LSPD == police3 || LSPD == police4 || LSPD == hpv1 || LSPD == hpv2 || LSPD == hpv3 || LSPD == hpv4)

And you do it with all your cars:
if(FDLS == fdlsambulance1 || FDLS == fdlsambulance2 || FDLS == fdlsambulance3 || FDLS == fdlsfdranger1 || FDLS == fdlsfdranger2 || FDLS == fdlsfslsf1)

Orhun_Kaya
05/05/2012, 10:12 AM
if(LSPD == lspdfbi1, lspdfbi2, lspdfbi3, lspdfbi4, lspdsultan1, lspdsultan2, lspdsultan3, lspdsultan4, police1, police2, police3, police4,hpv1, hpv2, hpv3, hpv4)

to

if(LSPD == lspdfbi1 || LSPD == lspdfbi2 || LSPD == lspdfbi3 || LSPD == lspdfbi4 || LSPD == lspdsultan1 || LSPD == lspdsultan2 || LSPD == lspdsultan3 || LSPD == lspdsultan4 || LSPD == police1 || LSPD == police2 || LSPD == police3 || LSPD == police4 || LSPD == hpv1 || LSPD == hpv2 || LSPD == hpv3 || LSPD == hpv4)

And you do it with all your cars:
if(FDLS == fdlsambulance1 || FDLS == fdlsambulance2 || FDLS == fdlsambulance3 || FDLS == fdlsfdranger1 || FDLS == fdlsfdranger2 || FDLS == fdlsfslsf1)

thank you man :) Its working