28.12.2011, 12:56
If you want to add more vehicles and skins, then better to use this code:
Hope you get it.
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.
}
}