Resource icon

CLEO Release FR.cs | FREEZE CARS!

CLEO related
Status
Not open for further replies.

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
[Description]
Hey guys, another cool troll cleo for you today!
This one allows you to freeze your target's car!  :trollface:   
It works on all SAMP versions.
Note: I'm using CLEO 4.3 and SAMPFUNCS 5.3.1

[Usage]
-Both you and your target must be driving cars.
-Your target must be within stream zone.
 
Type /fr <ID> to freeze your target!
Until you freeze another target or type /fr, the first target will not be able to drive any car.
 
Special thanks to: 0x32789, Opcode.eXe
Report any bugs you find in the comments!

ENJOY!
 

Attachments

  • FR.cs
    25.4 KB · Views: 1,549

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
one of the best trolls I ever see, but since it uses Call Packet, You guys will have to NOP the remove player from vehicle and set player pos to disable being teleported to the police car(because of restricted vehicle)
So with these nops you can freeze a law enforcement car, But if you do without it, You will get teleported to the restricted vehicle (such as vip vehicle)
add this is note please

edit:
here u go
add or not, your choice others can add this for RP servers etc and dm for hydras etc.
add on top near commands:
Code:
0BE3: raknet setup_incoming_rpc_hook @filter
:filter function
Code:
:filter
0BE5: raknet 1@ = get_hook_param 1
if
0@ == 1
then
    if or
    1@ == 12
    1@ == 13
    1@ == 14
    1@ == 15
    1@ == 70
    1@ == 71
    then
        print "~r~NetPatch~b~ State: ~y~Deny" 1000  // Just used for debugging or showing logs of net patches, I used this to test, Its handy for some reasons
        0BE0: raknet hook_ret false
    else
        print "~r~NetPatch~b~ State: ~y~Allow" 1000
        0BE0: raknet hook_ret true
    end
else
    0BE0: raknet hook_ret true
end
0BE0: raknet hook_ret true
 

Watchdog

Active member
Joined
May 11, 2014
Messages
69
Reaction score
1
Can you make it if I froze a player, and if I get out of the vehicle.. and still make them froze?
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
its a no, if you try to freeze onfoot, it will eject the car driver out and others will see you insta-warp and come back at the position just like being invisible and visible.
:SYNC_VEHICLE function from opcode dosent work on foot, It will eject if the player is onfoot so no.
You can apply the net patches so you can use this on rp servers and freeze pd vehicles on pursuit :D
netPatches:
SetPlayerPos
SetPlayerPosFindZ
RemovePlayerFromVehicle
PutPlayerInVehicle
SetPlayerInterior
SetPlayerVirtualWorld
 

Watchdog

Active member
Joined
May 11, 2014
Messages
69
Reaction score
1
Tried it, it sucks. It made me TP me to the target. LMFAO
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
Gatogato said:
Tried it, it sucks. It made me TP me to the target. LMFAO

Read what 0x32789 says. You're obviously playing on a RP which has car protections.
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
there is nothing wrong with the script its jsut the server kicking you of out vehicle because it is restricted or it is locked and u bypassed the locked,
Now to prevent this


add this near the command:
Code:
0BE3: raknet setup_incoming_rpc_hook @filter


then add this anywhere:
Code:
:filter
0BE5: raknet 1@ = get_hook_param 1
if
0@ == 1 // whatever the toggle is or if u want to do it by player id, just use playeridvar@ > 0
then
    if or
    1@ == 12
    1@ == 13
    1@ == 14
    1@ == 15
    1@ == 70
    1@ == 71
    then
        print "~r~NetPatch~b~ State: ~y~Deny" 1000 // used to debug
        0BE0: raknet hook_ret false
    else
        print "~r~NetPatch~b~ State: ~y~Allow" 1000
        0BE0: raknet hook_ret true
    end
else
    0BE0: raknet hook_ret true
end
0BE0: raknet hook_ret true
 

[CVT]Te[R]minater

Active member
Joined
May 29, 2014
Messages
184
Reaction score
0
[video=youtube]https://www.youtube.com/watch?v=UY76h3a8S9s[/video]here is the video
works great on CODE5 , SARP and IMRP :D
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
taosungke said:
Does it neccesery a car or a bike or NRG something like that ?

Yes, you must be driving a car in order for this to work
 

xxx47

Active member
Joined
Mar 9, 2014
Messages
73
Reaction score
0
Hi @0x32789 thanks for sharing, I used your script (for rp server), at first works but "server closed connection" after while
 

xxx47

Active member
Joined
Mar 9, 2014
Messages
73
Reaction score
0
at first works perfectly but "server closed connection" after while, ( i used nops)
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
I think because the server has some kind of protection from setplayerpos or removeplayerfromvehicle or putplayer nops
They can detect it by, setting the player pos and getting the old pos, after 3 or 4 second if he is under 10 or however meters of the old positoon, then nop detected
 

Graber

Active member
Joined
Mar 16, 2013
Messages
47
Reaction score
1
0x32789 said:
its a no, if you try to freeze onfoot, it will eject the car driver out and others will see you insta-warp and come back at the position just like being invisible and visible.
:SYNC_VEHICLE function from opcode dosent work on foot, It will eject if the player is onfoot so no.
You can apply the net patches so you can use this on rp servers and freeze pd vehicles on pursuit :D
netPatches:
SetPlayerPos
SetPlayerPosFindZ
RemovePlayerFromVehicle
PutPlayerInVehicle
SetPlayerInterior
SetPlayerVirtualWorld

Does a NOP for "SetPlayerVirtualWorld" even exist? Thats server sided...
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
Adrian_Graber said:
0x32789 said:
its a no, if you try to freeze onfoot, it will eject the car driver out and others will see you insta-warp and come back at the position just like being invisible and visible.
:SYNC_VEHICLE function from opcode dosent work on foot, It will eject if the player is onfoot so no.
You can apply the net patches so you can use this on rp servers and freeze pd vehicles on pursuit :D
netPatches:
SetPlayerPos
SetPlayerPosFindZ
RemovePlayerFromVehicle
PutPlayerInVehicle
SetPlayerInterior
SetPlayerVirtualWorld

Does a NOP for "SetPlayerVirtualWorld" even exist? Thats server sided...
Yes it exists
 
Status
Not open for further replies.
Top