[Suggestions] Some Functions?
#1

Heyho, thougth im gonna share some ideas that you guys could maybe implement in samp 0.3c

Well the First Function:
Код:
AttachPlayerToVehicle(playerid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
DetachPlayerFromVehicle(playerid)
This Function would Attach a Player to a Vehicle, so you could apply a player as a co-pilot in the shamal, or anything else... *** This can be done with PlayerSpectateVehicle...
Also you could you maybe implement a ReadProcessMemory/WriteProcessMemory for Clients?

Example:
Код:
ReadPlayerMemory(playerid, Offset, len, output[])
WritePlayerMemory(playerid, Offset, len, input[])
The server will tell the client (the client from the playerid) to read or write something inside the gta_sa.exe process, idk if it would be possible... so we could detect memory hacks (*****) when we are doing some checks inside the memory... but we could also do more with that...

PS: Sorry for my bad english, im not the best at it...

Edit: They should also add a function to link a sound to a player/vehicle or a object example:
Код:
LinkSoundToPlayer(playerid, soundid)
LinkSoundToVehicle(vehicleid, soundid)
LinkSoundToObject(objectid, soundid
the "soundid" is not the sound id to play a sound, it should be the returned value of the PlayerPlaySound....
Reply
#2

The first one seems can be done by PutPyayerInVehicle.
The second one is a pretty good idea, but seems to be difficult to use.
Also, hacks and mods seem to be successfully blocked in 0.3c.
Not pretty useful?
Reply
#3

Nice Idea
Reply
#4

Quote:
Originally Posted by leong124
Посмотреть сообщение
The first one seems can be done by PutPyayerInVehicle.
The second one is a pretty good idea, but seems to be difficult to use.
Also, hacks and mods seem to be successfully blocked in 0.3c.
Not pretty useful?
1. You cant put a 2 Player in a Shamal, with the Function you should be able to weld a player to a vehicle, ex. roof, inside, outside just everywhere.

2. You cant block Hacks/Mods for 100% you can do everything when u edit the stuff inside the Memory...

3. The Read/Write function is for more advanced user they know how to use it, if you want to know what it does:
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Reply
#5

For the shamal co-pilot .. you could, in theory put as many passengers as you want in ANY vehicle; just have the passengers spectate the vehicle from the 3rd person view.

Reading/writing to players memory just sounds like a security breach waiting to happen.
Reply
#6

Quote:
Originally Posted by Simon
Посмотреть сообщение
For the shamal co-pilot .. you could, in theory put as many passengers as you want in ANY vehicle; just have the passengers spectate the vehicle from the 3rd person view.

Reading/writing to players memory just sounds like a security breach waiting to happen
.
^
This, for the main memory access suggestion.
Reply
#7

Quote:
Originally Posted by leong124
Посмотреть сообщение
Also, hacks and mods seem to be successfully blocked in 0.3c.
Lol it isn't ^^
Reply
#8

writing does, reading maybe not. Being able to read a client's information could be useful in a few cases, Only if the server can receive a client's assembly scripts (just to make sure it exists versus a blank injection, or health hacks)
Reply
#9

Quote:
Originally Posted by Simon
Посмотреть сообщение
For the shamal co-pilot .. you could, in theory put as many passengers as you want in ANY vehicle; just have the passengers spectate the vehicle from the 3rd person view.

Reading/writing to players memory just sounds like a security breach waiting to happen.
Thanks mate, this is gonna solve my problem
Reply
#10

IsTrailerAttached(trailerid) would be useful. Atm it is possible to see if a vehicle has a trailer attached to it, but there is no way to see if a vehicle is a trailer and is attached to a vehicle. Kalcor told me on IRC to make this myself using OnPlayerUpdate, but that requires the player to be in the vehicle when the trailer dettaches, but trailers can dettach from vehicles without the vehicle having anybody in it.

Also IsPlayerSwimming(playerid) would be very useful. I know you can check if a player is below 0.0 but water levels aren't always at 0.0 because of tide. There is also water in swimming pools etc. A function to check if a player is swimming would just be awesome. A way to make this function could possibly check if a players oxygen bar is showing? If the bar is showing then the player is in a considerable amount of water, well enough to be swimming anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)