Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,634
» Latest member: TinjakMirza
» Forum threads: 2,471
» Forum posts: 12,507

Full Statistics

Online Users
There are currently 136 online users.
» 0 Member(s) | 133 Guest(s)
Bing, Google, Applebot

Latest Threads
From Uncertainty to Growt...
Forum: Chat
Last Post: Xyranaut
22 minutes ago
» Replies: 2
» Views: 45
Busco mapeador para servi...
Forum: Programación
Last Post: Nikolay_Staggs
Yesterday, 03:20 PM
» Replies: 0
» Views: 31
Best way to implement a s...
Forum: Questions and Suggestions
Last Post: cachegetfield
Yesterday, 08:00 AM
» Replies: 0
» Views: 38
Qawno for macOS — native ...
Forum: Releases
Last Post: Xyranaut
2026-05-30, 07:20 PM
» Replies: 0
» Views: 36
rust-samp 3.0.0 Released
Forum: Libraries
Last Post: NullSablex
2026-05-30, 05:34 PM
» Replies: 0
» Views: 37
Open Pawn — Cross-platfor...
Forum: Releases
Last Post: Xyranaut
2026-05-30, 02:09 PM
» Replies: 0
» Views: 37
Dołącz do ekipy projektu ...
Forum: Ogólne
Last Post: Sztakier
2026-05-27, 01:30 PM
» Replies: 0
» Views: 61
engkqSelections.inc
Forum: Libraries
Last Post: Engkq
2026-05-27, 02:58 AM
» Replies: 0
» Views: 84
FCNPC for open.mp - the c...
Forum: Plugins
Last Post: Xyranaut
2026-05-26, 01:26 AM
» Replies: 0
» Views: 78
🚀 ¡Buscamos Mapeador para...
Forum: Discusión GTA SA Multijugador
Last Post: Dramack
2026-05-25, 05:34 PM
» Replies: 0
» Views: 70

 
  Timers module
Posted by: Y_Less - 2019-05-22, 03:15 PM - Forum: Development Updates - Replies (32)

This is a sneak-peek at one of the improved modules we've done, for timers in open.mp:

PHP Code:
native SetTimer(const func[], msIntervalbool:repeat) = SetTimerEx;
native SetTimerEx(const func[], msIntervalbool:repeat, const params[], GLOBAL_TAG_TYPES:...);
native KillTimer(timer) = Timer_Kill;

// CreateTimer
native Timer:Timer_Create(const func[], usDelayusIntervalrepeatCount, const params[] = ""GLOBAL_TAG_TYPES:...);

// KillTimer
native bool:Timer_Kill(Timer:timer);

// Return time till next call.
native Timer_GetTimeRemaining(Timer:timer);

// Get number of calls left to make (0 for unlimited).
native Timer_GetCallsRemaining(Timer:timer);

// Get `repeatCount` parameter.
native Timer_GetTotalCalls(Timer:timer);

// ?Get `usInterval` parameter.
native Timer_GetInterval(Timer:timer);

// Reset time remaining till next call to `usInterval`.
native bool:Timer_Restart(Timer:timer); 

The first two are just for backwards-compatibility, the rest are the improved API:

PHP Code:
native Timer:Timer_Create(const func[], usDelayusIntervalrepeatCount, const params[] = ""GLOBAL_TAG_TYPES:...); 
  • `func` - Fairly obvious; what to call.
  • `usDelay` - Again obvious, the delay before the call (in microseconds).
  • `usInterval` - What to reset `usDelay` to after the first call. ?So if you wanted a timer on the hour every hour, but it was 8:47am right now, the call would be `Timer_Create("OnTheHour", 780 SECONDS, 3600 SECONDS, 0);`
  • `repeatCount` - Unlike the old functions, which are just "once" or "forever", this instead takes the number of times to call the function. ?"once" would be `1`, `500` would stop after 500 calls, and (backwards from the old API) `0` means "forever".
  • `GLOBAL_TAG_TYPES` - Like `{Float, ...}`, but with more tags.


  deleted
Posted by: Atom - 2019-05-21, 03:59 PM - Forum: Chat - Replies (11)

deleted


  Animation manipulating?
Posted by: Caledonite - 2019-05-21, 03:08 PM - Forum: Questions and Suggestions - Replies (1)

Hi.



Since I've always wondered how would the hand holding exactly work in GTA SA, as seen on this picture:

[Image: qIBOjCb.jpg]

(curse the Google!)



This also includes how it is possible for peds to back up slowly while shooting (this includes backing up while crouching).?



I think this should be possible to be in multiplayer scripting as well. Pretty sure there are more animations that "aren't in libraries", for example hand holding (I have never seen this in any anim library, but maybe I'm wrong).



Thoughts, questions, comments?


  Weapon data editing
Posted by: Caledonite - 2019-05-21, 03:03 PM - Forum: Questions and Suggestions - Replies (5)

Hi.

As far as I'm aware, a lot people have been wishing for years to have ability to shoot guns with cop animation wise and gang shooting animations. This is working only, if weapon.dat has been edited as far as I know.?

[Image: 1420548931_gallery15.jpg]
[Image: beaaeUw.jpg]

This is the examples. Pretty sure there could be more wide opinions included for weapon data editing?than just this thing.


  Espa?ol
Posted by: Roth - 2019-05-21, 01:09 PM - Forum: Other - Replies (1)

Error, sorry.



Delete post please.


Lightbulb Burgershot (Suggestion)
Posted by: Roth - 2019-05-21, 11:22 AM - Forum: Art - Replies (24)

Greetings community



It is a pleasure to apply my knowledge to suggest the logo of Burgetshot, I hope that they are more sincere opinions, thanks for entering the post.



[Image: 0LC4EOL.png]


  Some sort of unique id for vehicles
Posted by: XeroX - 2019-05-21, 10:52 AM - Forum: Questions and Suggestions - Replies (1)

hi,

so currently in samp you have vehicle ids the problem is that they could potentionally change and another vehicle takes over that id which may not be wanted. So im suggesting some sort of unique id for vehicles that will always (unless DestroyVehicle, FS /GM Unload happens) "point" to that specific vehicle no matter what happens. This could be added in the /dl command and with GetVehicleUID you could retrieve it.


  samp-precise-timers ?: A timer plugin written in Rust
Posted by: bmisiak - 2019-05-21, 05:36 AM - Forum: Plugins - Replies (16)

samp-precise-timers ⌚
github.com/bmisiak/samp-precise-timers


Briefly
Developed for net4game.com (RolePlay), this plugin provides precise timers for the server. It is written in Rust, a memory-safe language.

Why rewrite timers?
I had a lot of safety concerns with some of the existing solutions. They weren't written with data integrity, memory safety or preventing server crashes in mind and seemed to have quite a few bugs. As privacy and safety is our primary concern at net4game, I wrote this in Rust, which combines high-level ergonomics with the performance of a low-level language. ⚡

Please check out the code to see the benefits. You might like Rust a lot. The code is much simpler than C++ equivalents, especially the ones which still use *char, free() and delete[] instead of modern C++ idioms such as std::unique_ptr, but as Rust has no runtime, there is no overhead 😉

We would like your help! 💃
Oh, and if you enjoy working on servers, we are looking for a team to help our international expansion. 🎉  net4game has been around for a decade as the biggest Polish server. We introduced a lot of innovations over the years and we are almost ready to become international. Shoot me an e-mail at [email protected] if you're interested.

Downloads on GitHub
Also available on sampctl as

Code:
bmisiak/samp-precise-timers

On top of all of the above, I would love to help with developing open.mp!


Exclamation Sohbet Konusu
Posted by: sweezy - 2019-05-21, 01:06 AM - Forum: Turkish - Replies (103)

Selam.?[Image: 35.png]


  Please fix font and color codes
Posted by: Metro - 2019-05-20, 05:58 PM - Forum: Questions and Suggestions - Replies (2)

They broken