14.01.2011, 23:30
On the vehicle you want to link the skin to you must get the id. eg
after that
pawn Код:
new mycar;
mycar = AddStaticVehicle(bla);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new veh = GetPlayerVehicleID(playerid);
new pskin=GetPlayerSkin(playerid);
if(pskin != 265 || pskin != 266 && veh == mycar) // Guessing that those are the skins you want in the car
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x00FF00AA, "This car is only for players with skin 265 or skin 266");
return 1;
}
return 1;
}
return 0;
}