Reserved Vechiles for a Skin - 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: Reserved Vechiles for a Skin (
/showthread.php?tid=195879)
Reserved Vechiles for a Skin -
Dark734 - 04.12.2010
Hello,
It's seems i saw that somewhere, but i can't find it. I want to know how to make some vehicles reserved to a specific skin!
Thanks,
-Alex
Re: Reserved Vechiles for a Skin -
blackwave - 04.12.2010
on OnPlayerStateChange: [CODE] if(GetPlayerSkin(playerid) == skin) if(getplayervehicleid(playerid) == CAR)
Re: Reserved Vechiles for a Skin -
Dark734 - 04.12.2010
Explain more.
Don't understand.
Thanks.
Re: Reserved Vechiles for a Skin -
Axuj - 04.12.2010
pawn Код:
if(GetPlayerVehicleID(playerid) == xxx) //Checks the vehicle id
{
if(newstate == PLAYER_STATE_DRIVER) //Checks are player entering as a driver
{
if(GetPlayerSkin(playerid) == xxx) return; // If skin is suitable to use this vehicle do not continue
SendClientMessage(playerid, 0xFF00000, "Message."); //Send a message
RemovePlayerFromVehicle(playerid); //Remove player from vehicle
}
}