• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Some Suggestions for scripting for OMP
#1
Tongue 
Hey,

i got some more ideas for functions that could be very useful for scripters in OpenMP.

1. pause/sleep(time in s/ms)
I think everyone knows what i mean with that. If we had the ability to use this instead of timers directly in commands or functions it would be easier to
script time based stuff. EDIT: THIS SHOULD NOT REPLACE TIMERS BUT BE ADDITIONAL TO IT AS AN EXTRA FUNCTION

Example:
You send a message to the Player per command.
After that the function should stop for 3seconds and then the rest of the function can be done.
Code:
SendClientMessage(playerid, COLOR, "Trying to tow the nearest Vehicle. ?Please wait");
sleep(3000);//3ms or 3 sec
AttachTrailerToVehicle(...);
SendClientMessage(playerid, COLOR, "Vehicle towed.");


2. AttachVehicleToVehicle(vehicleid, tovehicleid, offset:x, offset:y, offset:z)
I was wondering why this was not already implemented in samp. It could work the same way AttachTrailerToVehicle/AttachObjectToVehicle works and would be very useful for many servers e.g. on reallife or trucker servers, where you need to tow vehicles or transport them on the packer.
The only possible way i know for doing this since yet is using a timer, which teleports the vehicle again and again and is not that good for the servers performance.


3. Colorable Checkpoints (ARGB): SetCheckpointColor(checkpointid, a, r, g, b)

4. Vehicleobjects
Objects with the texture of gta sa vehicles. They could be very useful for mappers and serverowners to create new places and jobs with it.

I saw the first two points in a couple samp forums and also needed them for my own server.?
I think they could atleast be good for some updates after the official OpenMP release
  Reply


Messages In This Thread
Some Suggestions for scripting for OMP - by SkeeZy - 2019-07-06, 01:37 PM

Forum Jump: