Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- forward Fix8BALL(playerid);
- public Fix8BALL(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1844.5834,-1856.3602,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1843.9762,-1854.9304,13.3828)) // Plantare bomba LS 2
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1845.5554,-1857.9611,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.9362,-1856.5945,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1844.5834,-1856.3602,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1850.3741,-1857.9613,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1853.0889,-1854.7529,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1853.7595,-1857.1993,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1854.6526,-1857.9623,13.3828)) // Plantare bomba LS
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
- }
- }
- }
- public OnPlayerConnect(playerid)
- {
- SetTimerEx("Fix8BALL", 50, true, "i", playerid);
- return 1;
- }
Add Comment
Please, Sign In to add comment