Is there any possible way - 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: Is there any possible way (
/showthread.php?tid=81561)
Is there any possible way -
Hugh - 11.06.2009
To only let someone use a certain car if he's in a certain skin, etc?
Re: Is there any possible way -
Klutty - 11.06.2009
Yes, think this will work.. This is UNTESTED.
pawn Код:
// at top of the script
new specialcar;
//under OnGameModeInit
specialcar = AddStaticVehicle(blahblah..);
// at OnPlayerEnterVehicle
new skin = GetPlayerSkin(playerid);
new carid = GetPlayerVehicleID(playerid, vehicleid);
if(carid == specialcar && skin == skinidhere)
{
//got right skin and is in that car, hes allowed to enter
}
else
{
// if the player dont have the skin, remove player from vehicle
Re: Is there any possible way -
Hugh - 11.06.2009
I'll give it a test now.