CLEO Help (cleo) SAMP.Functions

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Someone have all the functions to sampfuncs?
Like:
Code:
SAMP.GetVehicleHandleBySAMPVehicleID
samp add_message_to_chat
??
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Opcode.eXe link said:
Thanks  :urtheman:

---------------------------------------------------------------

You can explain me what is wrong on this code??  :yesyes:
Code:
{$CLEO .cs}

0B34: samp register_client_command "AddText" to_label @activate 
30@ = 0

:MAIN
wait 0
if
30@ == true
jf @MAIN
if
0B46: samp 3d_text 20@ defined
goto [member=5120]Error[/member]
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0B44: 20@ = samp create_3d_text 2@ color 0xFFFF00FF position 4@ 5@ 6@ view_distance 50.0 show_behind_walls 1 attached_to_player -1 attached_to_vehicle -1
30@ = false
SAMP.CmdRet
goto @MAIN

:activate
wait 0
SAMP.IsCommandTyped(0@)
if
0AD4: 1@ = scan_string 0@ format "%d" 2@ 
jf @usage
if
0B46: samp 3d_text 20@ defined
jf [member=5120]Error[/member]
0AF8: samp add_message_to_chat "Info: The set tag in your position." color 0xFFFFFF
30@ = true
SAMP.CmdRet
goto @MAIN

:usage
wait 0
0AF8: samp add_message_to_chat "Usage: /AddText <Text>" color 0xFFFFFF
SAMP.CmdRet
goto @MAIN

:Error
0AF8: samp add_message_to_chat "Error: ..." color 0xFFFFFF
SAMP.CmdRet
goto @MAIN

TH3RM4L: I combined your posts. Next time use the EDIT button if you don't want to get forum warned.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
275
Code:
{$CLEO .cs}
0000:
repeat
wait 100
until 0AFA:
0B34: samp register_client_command "AddText" to_label @activate 
30@ = 0

:MAIN
wait 0
goto @MAIN

:activate
0B35: 0@
if 0B46: samp 3d_text 20@ defined
then 0B45: samp destroy_3d_text 20@
end
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0B44: 20@ = samp create_3d_text 0@ color 0xFFFF00FF position 4@ 5@ 6@ view_distance 50.0 show_behind_walls 1 attached_to_player -1 attached_to_vehicle -1
0AF8: samp add_message_to_chat "Info: The set tag in your position." color 0xFFFFFF
SAMP.CmdRet()
 
Status
Not open for further replies.
Top