if (PRESSED(KEY_CROUCH))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleID(playerid) == 462)
{
new faggio = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z;
GetVehiclePos(faggio, x, y, z);
SetVehiclePos(faggio, x, y + 2, z);
PutPlayerInVehicle(playerid, faggio, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
}
if (PRESSED(KEY_CROUCH))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 462)
{
new faggio = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z;
GetVehiclePos(faggio, x, y, z);
SetVehiclePos(faggio, x, y + 2, z);
PutPlayerInVehicle(playerid, faggio, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
}
if(GetPlayerVehicleID(playerid) == 462)
|
Player is inside a faggio, move the faggio and put him back in the faggio and play a sound. Why?
|