[FilterScript] Push Car Back - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Push Car Back (
/showthread.php?tid=551033)
Push Car Back -
UltraScripter - 16.12.2014
Well This Is Pretty Much A Filterscript I Made This
If The Car Drives To Some Point And You Dont Want The Car Enter That Point You Can Push The Car
The Code:
pawn Код:
//By UltraScripter Move Back
//UltraScripter ksdkds ksdk skd kds ksdksd
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Move Car Back By UltraScripter ! ! ! ");
print("--------------------------------------\n");
return 1;
}
public OnPlayerUpdate(playerid)
{
new vehicleid, Float:x, Float:y, Float:z;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 30.0, 1402.6217,873.7759,6.6783)) //you can change the pos i just did this for example
{
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(vehicleid, x, y, z);
SetVehicleVelocity(vehicleid, x*x, y*y, z*z);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~r~You Are Not Allowd To Drive There!", 3000, 4);
SendClientMessage(playerid, 0xFFFF00FF, "You Cannot {FF0000}Enter {FFFF00}There!");
}
}
return 1;
}
//By UltraScripter Move Back
//UltraScripter ksdkds ksdk skd kds ksdksd
Pics:
And Sorry If You Didn't Understand Me
!...
Re: Push Car Back -
Glossy42O - 16.12.2014
Allowed * and any pics ?
Re: Push Car Back -
UltraScripter - 16.12.2014
Hare
..
Re: Push Car Back -
PT - 16.12.2014
Use Dynamic Areas from streamer for that instead the OnPlayerUpdate..
Re: Push Car Back -
UltraScripter - 16.12.2014
Ok
.
Re: Push Car Back -
Write - 16.12.2014
You just gave me an idea, +1 for you man!
Re: Push Car Back -
UltraScripter - 16.12.2014
np and thx
..
Re: Push Car Back -
Moudix - 18.12.2014
Very nice Filterscript , Goodjob
Re: Push Car Back -
UltraScripter - 18.12.2014
Thx
.