thelo4d1ng
Member
- Joined
- Feb 24, 2019
- Messages
- 17
- Reaction score
- 2
if hp lower than 50, it auto type the command "/usarkit"
can someone do?
can someone do?
samp version? using sampfuncs?if hp lower than 50, it auto type the command "/usarkit"
can someone do?
0.3.7 r1samp version? using sampfuncs?
0.3.7 r1
yes
{$CLEO .cs}
0000: NOP
repeat
wait 0
until 0afa:
while true
wait 0
if
0B61: samp is_local_player_spawned
then
0B25: samp 0@ = get_player_health $PLAYER_ACTOR
if 0@ < 50
then
say "/usarkit"
wait 1000
end
end
end
can you make it so it only type the command one time?PHP:{$CLEO .cs} 0000: NOP repeat wait 0 until 0afa: while true wait 0 if 0B61: samp is_local_player_spawned then 0B25: samp 0@ = get_player_health $PLAYER_ACTOR if 0@ < 50 then say "/usarkit" wait 1000 end end end
can you make it so it only type the command one time?
{$CLEO .cs}
0000: NOP
repeat
wait 0
until 0afa:
while true
wait 0
if
0B61: samp is_local_player_spawned
then
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B25: samp 1@ = get_player_health 0@
if 1@ < 50
then
say "/usarkit"
while 1@ < 50
wait 0
0B25: samp 1@ = get_player_health 0@
end
end
end
end
can you pass me this in fileC#:{$CLEO .cs} 0000: NOP repeat wait 0 until 0afa: while true wait 0 if 0B61: samp is_local_player_spawned then 0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR 0B25: samp 1@ = get_player_health 0@ if 1@ < 50 then say "/usarkit" while 1@ < 50 wait 0 0B25: samp 1@ = get_player_health 0@ end end end end
can you pass me this in file
it will only work on samp 0.3.7 R1 using SAMPFUNCSI edited it to my liking but why can't I back it up?
You can make ot work without SFit will only work on samp 0.3.7 R1 using SAMPFUNCS
Can you guys help me with the 0.3dl version?
{$CLEO .cs}
0000:
REPEAT
WAIT 1000
0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY
0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"
WHILE TRUE
WAIT 0
if 0AB1: @SAMPIsLocalPlayerSpawned 0
then
0226: 0@ = actor $PLAYER_ACTOR health
if 0@ < 50
then
0AB1: @SEND_CMD 1 30@
REPEAT
WAIT 1000
0226: 0@ = actor $PLAYER_ACTOR health
UNTIL 0@ >= 50
end
end
END
:SAMPIsLocalPlayerSpawned
{
0.3.DL
0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
0A8D: 2@ readMem 1@ sz 4 vp 0
IF 2@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:SEND_CMD
{
0AB1: @SEND_CMD 1 $text
0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x69340
0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
Thank you so much, you're so coolPHP:{$CLEO .cs} 0000: REPEAT WAIT 1000 0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0 UNTIL 31@ == 9 // SAMP_IS_READY 0AC8: 30@ = allocate_memory_size 260 0AD3: 30@ = format "/usepot" WHILE TRUE WAIT 0 if 0AB1: @SAMPIsLocalPlayerSpawned 0 then 0226: 0@ = actor $PLAYER_ACTOR health if 0@ < 50 then 0AB1: @SEND_CMD 1 30@ REPEAT WAIT 1000 0226: 0@ = actor $PLAYER_ACTOR health UNTIL 0@ >= 50 end end END :SAMPIsLocalPlayerSpawned { 0.3.DL 0AB1: @SAMPIsLocalPlayerSpawned 0 } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x2ACA24 // SAMP_INFO_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x3DE // SAMP_POOLS_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET 0A8D: 1@ readMem 1@ sz 4 vp 0 1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET 0A8D: 2@ readMem 1@ sz 4 vp 0 IF 2@ > 0 THEN 0485: return_true ELSE 059A: return_false END END 0AB2: ret 0 :SEND_CMD { 0AB1: @SEND_CMD 1 $text 0.3.DL } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x69340 0AA5: call 1@ num_param 1 pop 0 0@ END 0AB2: 0
how to make it repeat infinite sirPHP:{$CLEO .cs} 0000: REPEAT WAIT 1000 0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0 UNTIL 31@ == 9 // SAMP_IS_READY 0AC8: 30@ = allocate_memory_size 260 0AD3: 30@ = format "/usepot" WHILE TRUE WAIT 0 if 0AB1: @SAMPIsLocalPlayerSpawned 0 then 0226: 0@ = actor $PLAYER_ACTOR health if 0@ < 50 then 0AB1: @SEND_CMD 1 30@ REPEAT WAIT 1000 0226: 0@ = actor $PLAYER_ACTOR health UNTIL 0@ >= 50 end end END :SAMPIsLocalPlayerSpawned { 0.3.DL 0AB1: @SAMPIsLocalPlayerSpawned 0 } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x2ACA24 // SAMP_INFO_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x3DE // SAMP_POOLS_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET 0A8D: 1@ readMem 1@ sz 4 vp 0 1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET 0A8D: 2@ readMem 1@ sz 4 vp 0 IF 2@ > 0 THEN 0485: return_true ELSE 059A: return_false END END 0AB2: ret 0 :SEND_CMD { 0AB1: @SEND_CMD 1 $text 0.3.DL } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x69340 0AA5: call 1@ num_param 1 pop 0 0@ END 0AB2: 0
please help me, it's similar to this, if armor falls below 50 will automatically use command , and that will repeat if you continue below 50 armor
{$CLEO .cs}
0000:
REPEAT
WAIT 1000
0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY
0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"
WHILE TRUE
WAIT 0
if 0AB1: @SAMPIsLocalPlayerSpawned 0
then
04DD: 0@ = actor $PLAYER_ACTOR armour
if 0@ < 50
then
0AB1: @SEND_CMD 1 30@
WAIT 500 // to avoid server anti command spam
end
end
END
:SAMPIsLocalPlayerSpawned
{
0.3.DL
0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
0A8D: 2@ readMem 1@ sz 4 vp 0
IF 2@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:SEND_CMD
{
0AB1: @SEND_CMD 1 $text
0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x69340
0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
Thank you so muchPHP:{$CLEO .cs} 0000: REPEAT WAIT 1000 0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0 UNTIL 31@ == 9 // SAMP_IS_READY 0AC8: 30@ = allocate_memory_size 260 0AD3: 30@ = format "/usepot" WHILE TRUE WAIT 0 if 0AB1: @SAMPIsLocalPlayerSpawned 0 then 04DD: 0@ = actor $PLAYER_ACTOR armour if 0@ < 50 then 0AB1: @SEND_CMD 1 30@ WAIT 500 // to avoid server anti command spam end end END :SAMPIsLocalPlayerSpawned { 0.3.DL 0AB1: @SAMPIsLocalPlayerSpawned 0 } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x2ACA24 // SAMP_INFO_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x3DE // SAMP_POOLS_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET 0A8D: 1@ = readmem 1@ sz 4 vp 0 1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET 0A8D: 1@ readMem 1@ sz 4 vp 0 1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET 0A8D: 2@ readMem 1@ sz 4 vp 0 IF 2@ > 0 THEN 0485: return_true ELSE 059A: return_false END END 0AB2: ret 0 :SEND_CMD { 0AB1: @SEND_CMD 1 $text 0.3.DL } IF 0AA2: 1@ = "samp.dll" THEN 1@ += 0x69340 0AA5: call 1@ num_param 1 pop 0 0@ END 0AB2: 0