Please heeeeeeeeelp going to be crazy!
#1

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
Reply
#2

Removed.
Reply
#3

Just like this:
pawn Код:
// OnPlayerEnterVehicle
if(!ispassenger && GetVehicleModel(vehicleid) == 525)
{
    if(GetPlayerSkin(playerid) != 50)
        ClearAnimations(playerid);
}
Reply
#4

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?
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)