28.12.2011, 18:39
pawn Код:
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;
}