[FilterScript] Push Car Back
#1

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 !...
Reply
#2

Allowed * and any pics ?
Reply
#3

Hare ..
Reply
#4

Use Dynamic Areas from streamer for that instead the OnPlayerUpdate..
Reply
#5

Ok .
Reply
#6

You just gave me an idea, +1 for you man!
Reply
#7

np and thx ..
Reply
#8

Very nice Filterscript , Goodjob
Reply
#9

Thx .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)