public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger && GetVehicleModel(vehicleid) == 525)
{
if(GetPlayerSkin(playerid) != 50)
ClearAnimations(playerid);
return 1;
}
if(!ispassenger && GetVehicleModel(vehicleid) == 596)
{
if(GetPlayerSkin(playerid) != 282)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 596)
{
if(GetPlayerSkin(playerid) != 283)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 596)
{
if(GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 597)
{
if(GetPlayerSkin(playerid) != 282)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 597)
{
if(GetPlayerSkin(playerid) != 283)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 597)
{
if(GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 597)
{
if(GetPlayerSkin(playerid) != 288)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 598)
{
if(GetPlayerSkin(playerid) != 282)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 598)
{
if(GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 598)
{
if(GetPlayerSkin(playerid) != 283)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 598)
{
if(GetPlayerSkin(playerid) != 288)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 490)
{
if(GetPlayerSkin(playerid) != 282)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 490)
{
if(GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 490)
{
if(GetPlayerSkin(playerid) != 288)
ClearAnimations(playerid);
}if(!ispassenger && GetVehicleModel(vehicleid) == 490)
{
if(GetPlayerSkin(playerid) != 283)
ClearAnimations(playerid);
}
if(!ispassenger && GetVehicleModel(vehicleid) == 427)
{
if(GetPlayerSkin(playerid) != 282)
ClearAnimations(playerid);
}if(!ispassenger && GetVehicleModel(vehicleid) == 427)
{
if(GetPlayerSkin(playerid) != 283)
ClearAnimations(playerid);
}if(!ispassenger && GetVehicleModel(vehicleid) == 427)
{
if(GetPlayerSkin(playerid) != 288)
ClearAnimations(playerid);
}if(!ispassenger && GetVehicleModel(vehicleid) == 427)
{
if(GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
if(GetVehicleModel(vehicleid) == 525) if(GetPlayerSkin(playerid) != 50)
if(GetVehicleModel(vehicleid) == 596) if(GetPlayerSkin(playerid) != 282 || GetPlayerSkin(playerid) != 283 || GetPlayerSkin(playerid) != 281)
if(GetVehicleModel(vehicleid) == 597) if(GetPlayerSkin(playerid) != 282 || GetPlayerSkin(playerid) != 283 || GetPlayerSkin(playerid) != 281 || GetPlayerSkin(playerid) != 288)
if(GetVehicleModel(vehicleid) == 598) if(GetPlayerSkin(playerid) != 282 || GetPlayerSkin(playerid) != 283 || GetPlayerSkin(playerid) != 281 || GetPlayerSkin(playerid) != 288)
if(GetVehicleModel(vehicleid) == 490) if(GetPlayerSkin(playerid) != 282 || GetPlayerSkin(playerid) != 281 || GetPlayerSkin(playerid) != 288 || GetPlayerSkin(playerid) != 283)
if(GetVehicleModel(vehicleid) == 427) if(GetPlayerSkin(playerid) != 282 || GetPlayerSkin(playerid) != 283 || GetPlayerSkin(playerid) != 288 || GetPlayerSkin(playerid) != 281)
ClearAnimations(playerid);
}
return true;
}
I cant enter the vehicle if i got the skin i got no errors by compiling...please help
|