SA-MP Forums Archive
[HELP] Adding Faction Cars i LA-RP Gamemode. - 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: [HELP] Adding Faction Cars i LA-RP Gamemode. (/showthread.php?tid=129156)



[HELP] Adding Faction Cars i LA-RP Gamemode. - GloomY - 21.02.2010

Hello everyone, I'm just wondering how to add faction cars in LA-RP Gamemode?
I want to add cars in Grove street who can drive only members of Grove Street, and add cars for other factions. Can someone help me?


Re: [HELP] Adding Faction Cars i LA-RP Gamemode. - Norn - 21.02.2010

Quote:
Originally Posted by Haxby
Hello everyone, I'm just wondering how to add faction cars in LA-RP Gamemode?
I want to add cars in Grove street who can drive only members of Grove Street, and add cars for other factions. Can someone help me?
Post in the LA-RP thread.


Re: [HELP] Adding Faction Cars i LA-RP Gamemode. - GloomY - 21.02.2010

I posted it, but if someone wants to help me here, I would be really pleased.


Re: [HELP] Adding Faction Cars i LA-RP Gamemode. - MaykoX - 21.02.2010

Quote:
Originally Posted by Haxby
I posted it, but if someone wants to help me here, I would be really pleased.
You simply addstatisctic vehicle in gamemode than you search example IsGroveCar and add there car ID (NOT MODEL ID). You can get car id by /oldcar than you add there example :

Quote:

public IsAGroveCar(carid)
{
if((carid >= (carid)112 && carid <= (carid)113) || (carid >= 180 (car id) && carid <= (carid)181)) // remove (carid) (>=.. | ..<=) means from id to id there must be same ids in if they arent simply add (carid (CARID) || next..
{
return 1;
}
return 0;
}

Hope you understand


Re: [HELP] Adding Faction Cars i LA-RP Gamemode. - GloomY - 22.02.2010

Thank you very much.