Resource icon

CLEO Release /.goto command | Teleport to players in the same world and interior!

CLEO related
Status
Not open for further replies.

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
Only works with players in the same world and interior.
Required:
    SAMPFuncs (Mine is version 3.2)

Code:
{$CLEO}

0000:
thread "REBOOT_UGBASE"
0B34: samp register_client_command ".goto" to_label @REBOOT_UGBASE_189

:REBOOT_UGBASE_175
wait 0
jump @REBOOT_UGBASE_175

:REBOOT_UGBASE_189
    SAMP.IsCommandTyped(13@)
if
    0AD4: 13@ = scan_string 13@ format "%d" 21@
else_jump @REBOOT_UGBASE_192
if
    SAMP.IsPlayerConnected(21@)
else_jump @REBOOT_UGBASE_195
jump @REBOOT_UGBASE_198

:REBOOT_UGBASE_192
0AF8: samp add_message_to_chat "[.GOTO] /.goto <player_id>" color -1
SAMP.CmdRet()

:REBOOT_UGBASE_195
0AF8: samp add_message_to_chat "[.GOTO] Invalid player ID!" color -1
SAMP.CmdRet()

:REBOOT_UGBASE_198
0B20: samp 25@ = actor_handle_by_samp_player_id 21@
if
    056D:   actor 25@ defined
jf @REBOOT_UGBASE_201
jump @REBOOT_UGBASE_204

:REBOOT_UGBASE_201
0B2F: samp get_streamed_out_player_pos 21@ to 28@ 29@ 30@
Actor.PutAt($PLAYER_ACTOR, 28@, 29@, 30@)
0AF8: samp add_message_to_chat "[.GOTO] Teleported!" color -1
SAMP.CmdRet()

:REBOOT_UGBASE_204
00A0: store_actor 25@ position_to 28@ 29@ 30@
Actor.PutAt($PLAYER_ACTOR, 28@, 29@, 30@)
0AF8: samp add_message_to_chat "[.GOTO] Teleported!" color -1
SAMP.CmdRet()

(credits to 'springfield', I learned how to make commands by looking at his script)
 

Attachments

  • goto.cs
    18.6 KB · Views: 2,152

Shakira

Active member
Joined
Jul 11, 2014
Messages
191
Reaction score
0
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

lol i'am /.goto [id] and teleport to bug not teleport to player -_-
 

Vrana

Active member
Joined
Jun 24, 2014
Messages
128
Reaction score
0
Location
Serbia
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

For me it's not working, when I write /.goto ID, teleport's me underground and falling.  :angry:
Fix it please  :yesyes:
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

0B2F: samp get_streamed_out_player_pos 21@ to 28@ 29@ 30@

This is no more work in 0.3z/
 

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

Hmmm...
Try /.goto to other people(s).
Some people can't be TP'd into but some can.
Even the one that is unstreamed (in distance)
I tested this on xSF and xMovie, 60% players I tested works, rest teleported me to 0.0, 0.0, 0.0
 

sameer

Active member
Joined
Jun 1, 2014
Messages
190
Reaction score
0
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

Thanks
working for me.
but player tele to other player in same world.
anyway thanks again.
 

prizm

Active member
Joined
Jul 13, 2013
Messages
67
Reaction score
1
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

when I do it, it just says "[.GOTO] teleported!" and nothing happens. this is on players who are close to me too. and 4 out of 5 times it just crashes the game

:imoverit:
 

Bagus_Rianto

Active member
Joined
May 9, 2014
Messages
90
Reaction score
1
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

prizm link said:
when I do it, it just says "[.GOTO] teleported!" and nothing happens. this is on players who are close to me too. and 4 out of 5 times it just crashes the game

:imoverit:
Streamed player :imoverit:
 

PopandaulX

Active member
Joined
Jul 15, 2013
Messages
189
Reaction score
1
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

It doesn't work on some servers.
 

afattahniz

Active member
Joined
Jun 8, 2015
Messages
74
Reaction score
0
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

i paste goto.cs in my cleo folder and i have sampfuncs 3.2 but however my samp crashes when i try to join any server? help pls
 

carcosa

New member
Joined
Sep 25, 2014
Messages
3
Reaction score
0
Re: [CLEO] /.goto command | Teleport to players in the same world and interior!

afattahniz link said:
i paste goto.cs in my cleo folder and i have sampfuncs 3.2 but however my samp crashes when i try to join any server? help pls

if the server is 0.3.7, the sampfuncs 3.2 wont work
 
Status
Not open for further replies.
Top