[mod_sa] Get One Vehicle from All SAMP Vehicles

Status
Not open for further replies.

_]D4rkN3zz[_

Member
Joined
Sep 1, 2013
Messages
19
Reaction score
0
Hi, i explain it better.
I am doing some car hack (example car shooter or car colorise, doesn't matter) and i want
get only one vehicle from all samp vehicles without use loop for.
And when i call the function, when i am getting vehicle, and i call this again, get another vehicle but only one.
But i don't know how to do. I am using still for loop and i tried get one car, but didn't work.
So please if you can help, can you explain how can i do this?
Example: Car shooter (shooting cars)
Sorry for my bad english and thank you.
 

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
Try using recursion :p :p:p
I'm not really sure what you want to do, but recently i was working at an android app, and i had to download async like 39 files tp update something, and the for didn't do the job, because it start like 39 downloads async in the same time, so i used a recursive function, when a download is done, call the function again, with the int paramenter +1 .

I hope it helped.
 

_]D4rkN3zz[_

Member
Joined
Sep 1, 2013
Messages
19
Reaction score
0
Thank you Wut. I solved this, but now i hav else problem.
Car hacks (example car floating) works good, other players see it well, but i
see it bad.
For example: Cars floating see players shooting cars to air, but i see cars above my head, still... after i disable
this hack, i see cars shooting to cars (once).
And i don't know how to synchronize vehicle_info (sync for me).
If you can help me, thank you and again sorry for my bad english.
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,121
Reaction score
171
D4rkN3zz[_"]Thank you Wut. I solved this, but now i hav else problem.
Car hacks (example car floating) works good, other players see it well, but i
see it bad.
For example: Cars floating see players shooting cars to air, but i see cars above my head, still... after i disable
this hack, i see cars shooting to cars (once).
And i don't know how to synchronize vehicle_info (sync for me).
If you can help me, thank you and again sorry for my bad english.
Just set the values manual or search the Stream method on the samp.dll
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,121
Reaction score
171
D4rkN3zz[_"]Thank you, but what do you mean with manual set?
cheat_vehicle_teleport
vehicle_info->speed
 
Status
Not open for further replies.
Top