SA-MP Forums Archive
HQ cars problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HQ cars problem (/showthread.php?tid=72068)



HQ cars problem - Peter_Corneile - 05.04.2009

Well i added some cars in my HQ in me and my friend Tal's server . The cars were placed in there right positions as i had made but when i enter them , it says you dont have the key to this vehicle or in some cars you cant even try to enter because on pressing enter , nothing happens


Re: HQ cars problem - ICECOLDKILLAK8 - 05.04.2009

If your using the Godfather then ask in the Godfather topic, Its to do with using car ids


Re: HQ cars problem - Peter_Corneile - 05.04.2009

Well i am using LARP script .....Help me please if you can !


Re: HQ cars problem - sandsnake - 05.04.2009

Well lets Help This Guy
Place On top near the other fowards
Pawno Code
Quote:

forward IsAyourgangnameCar(carid); //yourgangname its your faction name.

In Public area add this
Pawn Code
Quote:

public IsAyourgangnameCar(carid)
{
if((carid >= 36) && (carid <= 6 || (carid >= 70) && (carid <= 75) || (carid >= 222) && (carid <= 22) //You Need to check your cars ids ingame and change this ids here.
{
return 1;
}
return 0;
}

And Finnally add
Pawn Code
Quote:

if(IsAyourgangnameCar(newcar))
{
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { } else { RemovePlayerFromVehicle(playerid);
}

if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { }//4 is the id of the faction you want to drive that cars


Re: HQ cars problem - Taz86 - 06.04.2009

how i can get the Car IG Ingame?
I mean if i got two infernus so the code not 411

So i got all of what you say but the id thingy no.
Help me with this please.


Re: HQ cars problem - Taz86 - 10.04.2009

Help us!

How to find the car ID In game?