Please heeeeeeeeelp going to be crazy! - 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)
+--- Thread: Please heeeeeeeeelp going to be crazy! (
/showthread.php?tid=306905)
Please heeeeeeeeelp going to be crazy! -
Gooday - 28.12.2011
How i can let enter just a skin in a car:
EXAMPLE
JUST the skin n°50 can enter the vehicle model n°525 please and let JUST this skin drive it the others skins cant enter the truck
PLEASE I GIVE YOU REPUTATION I AM DISPERATED I CANT MAKE THIS! please post a example too
Re: Please heeeeeeeeelp going to be crazy! - MatthewD - 28.12.2011
Removed.
Re: Please heeeeeeeeelp going to be crazy! -
Norck - 28.12.2011
Just like this:
pawn Код:
// OnPlayerEnterVehicle
if(!ispassenger && GetVehicleModel(vehicleid) == 525)
{
if(GetPlayerSkin(playerid) != 50)
ClearAnimations(playerid);
}
Re: Please heeeeeeeeelp going to be crazy! -
Gooday - 28.12.2011
Quote:
Originally Posted by Norck
Just like this:
pawn Код:
// OnPlayerEnterVehicle if(!ispassenger && GetVehicleModel(vehicleid) == 525) { if(GetPlayerSkin(playerid) != 50) ClearAnimations(playerid); }
|
Thank! how i can get more than one skin and vehicle?
Re: Please heeeeeeeeelp going to be crazy! -
Norck - 28.12.2011
Quote:
Originally Posted by Gooday
Thank! how i can get more than one skin and vehicle?
|
If you want to add more vehicles and skins, then better to use this code:
pawn Код:
if(!ispassenger)
{
new skin = GetPlayerSkin(playerid);
switch(GetVehicleModel(vehicleid))
{
case 525: // first vehicle id
{
if(skin != 50) // first skin id
ClearAnimations(playerid);
}
case vehid_2: // second vehicle id
{
if(skin != skinid_2) // second skin id
ClearAnimations(playerid);
}
case vehid_3: // third vehicle id
{
if(skin != skinid_3) // third skin id
ClearAnimations(playerid);
}
// etc.
}
}
Hope you get it.