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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,054
» Latest member: adrianosilvaborges428
» Forum threads: 2,355
» Forum posts: 12,245

Full Statistics

Online Users
There are currently 385 online users.
» 0 Member(s) | 382 Guest(s)
Bing, Google, Yandex

Latest Threads
Plan C: Protect The Presi...
Forum: Advertisements
Last Post: PipPo
9 hours ago
» Replies: 0
» Views: 16
CODE5 GAMING COPS AND ROB...
Forum: Advertisements
Last Post: ryanthiago789
Yesterday, 03:02 AM
» Replies: 0
» Views: 28
SAMP RP project in 2024? ...
Forum: General Discussions
Last Post: tommchris
Yesterday, 02:05 AM
» Replies: 4
» Views: 2,462
Infekcja 2: Zombie Surviv...
Forum: Serwery
Last Post: tunnelrushgame3d
Yesterday, 01:50 AM
» Replies: 1
» Views: 190
FPS issues
Forum: General Discussions
Last Post: kourtneyroberts
2025-04-28, 04:53 AM
» Replies: 0
» Views: 21
How to make your GTA SA:M...
Forum: Tutorials
Last Post: NoxxeR
2025-04-27, 11:26 AM
» Replies: 1
» Views: 78
Problem about pawnbot
Forum: Pawn Scripting
Last Post: balkanspeed18
2025-04-26, 02:04 PM
» Replies: 0
» Views: 39
Error
Forum: Pawn Scripting
Last Post: -N0FeaR-
2025-04-25, 12:05 PM
» Replies: 0
» Views: 40
GTA Multigames [ MultiMod...
Forum: Advertisements
Last Post: Undead
2025-04-25, 07:37 AM
» Replies: 0
» Views: 50
Atlanta DeathMatch
Forum: Advertisements
Last Post: NixaSha
2025-04-25, 01:19 AM
» Replies: 0
» Views: 45

 
  Problem with GetTickCount
Posted by: RhaegarX - 2021-03-11, 12:55 PM - Forum: Support - Replies (21)

I made an anti flood command script for my gamemode, in which the player can only type commands every 2 seconds. Everything worked fine, until yesterday I realized that this script had bugged, any command typed by the player regardless of the time between them is classified as spam.

[Image: xr701iO.png]

So I decided to do a type of debugging, to see what value the GetTickCount was returning, and it is returning very large negative values.
[Image: Palr2LS.png]

The amazing thing about this problem is that it only occurs on my computer, on my notebook and on the gamemode host this problem does not occur everything works correctly. Does anyone have any idea what this is? Maybe some problem with some windows dll? I do not believe it is a gamemode problem, because as I mentioned in other places it works normally, only on my computer this problem occurs.

Here are the plugins / includes I use and the anti flood code snippet

PHP Code:
#include? ? <a_samp>
#define FIXES_Single 1
#define FIXES_ServerVarMsg 0
#define LOCAL_HOST true
// Redefini??es antes da Fixes
#if? ? ? defined MAX_PLAYERS
#undef? ? MAX_PLAYERS
#if LOCAL_HOST == true
#define? MAX_PLAYERS? (100)
#else
#define? MAX_PLAYERS? (30)
#endif
#endif
//
#include <fixes>
#include <crashdetect>
#include? ? <timerfix>
#include? ? <a_mysql>
#include? ? <foreach>
#include? ? <izcmd>
#include? ? <sscanf2>
#include? ? <MV_Youtube>
#include? ? <streamer>
#include? ? <callbacks>
#include? ? <mSelection>
#define AUTO_SETUP
#include? ? <gmtime>


public OnPlayerCommandReceived(playeridcmdtext[])
{
? ? if (!
IsPlayerConnected(playerid) || playerid == INVALID_PLAYER_ID)
{
return 
SendClientMessage(playeridCOLOR_INVALID"You are not connected."), false;
}
if (
GetTickCount() - timeUsedCommand[playerid] < 2000)
? ? {
return 
SendClientMessage(playeridCOLOR_GRAD1"Wait 2 seconds to retype a command!"), false;
? ? }
timeUsedCommand[playerid] = GetTickCount();
? ? return 
1;


plugins crashdetect fixchars sscanf mysql streamer timerfix gmtime SAMPSON

And this problem has occurred with any code that uses the native GetTickCount.


  Compiling on Linux
Posted by: Smyle - 2021-03-10, 09:37 PM - Forum: Pawn Scripting - Replies (5)

Heyo.



So... In a while ago i just moved into Linux (Ubuntu/Debian)?for other development purposes and i didnt want to stop all my SAMP projects because of Torvalds. My issue is with compiling. Does anyone knows how am i going to be able to compile in this OS? Or do something else so it can work??



Thank you. As yall can notice i am not an expert (not even close to an amateur) on using linux, so... I'm kinda lost here.


  Any way to show custom models in class selection?
Posted by: RoBy41 - 2021-03-10, 06:32 PM - Forum: Pawn Scripting - No Replies

So I added Sweet, Ryder and Big Smoke in a class selection for Grove Street Families. I decided to replace their models with their beta versions (mods), so I did that. But if I replace their ids in the AddPlayerClass (for example Sweet which is 271, with the id of the new model), when I go on the server, in the class selection Sweet shows up as CJ instead of the custom model.

As a temporary fix, I decided to add the vanilla skins (Sweet, Ryder, BS) in the class selection and make it switch the player's skin from Sweet to BETA Sweet upon spawning for example, but I want it to be visible in the class selection too.

So is there any way to fix this? I think most of you will tell me to use mSelection or something like that, but I think it's hard to remake the whole class selection or at least very time consuming.


  [MAP] Hotel "Dubrovnik"
Posted by: Muksinjo - 2021-03-10, 05:44 PM - Forum: Videos and Screenshots - Replies (1)

Hello, this is my new map, it's Hotel called "Dubrovnik". Hope you like it! :D

https://imgur.com/a/wv6wfnv


Rainbow Add color gradient textdraws
Posted by: Radical - 2021-03-10, 05:07 PM - Forum: Questions and Suggestions - Replies (4)

As mentioned in the subtitle, adding this feature in Open.mp?to beautify Textdraws is very fantastic ??



https://wikipedia.org/wiki/Color_gradient

https://www.w3schools.com/colors/colors_gradient.asp

[Image: How-To-Design-a-Gradient-Logo-01-1024x611-1.png]


  [DA-RP: Dark Ages: Medieval Roleplay] Winter Update!
Posted by: Wolfgang - 2021-03-10, 04:49 PM - Forum: Videos and Screenshots - Replies (1)

"Audio Streaming"


Quote:
? A novel audio system was implemented to enrichen the ambientance and server's atmosphere

? In-game audio streams were severely limited because they couldn't support more than one audio playing simultaneously and there was no 3D spatialization based on player position.

? In this new system the player opens a webpage which automatically connects to the server through a socket; this possibilitates multiple overlapping audio streams with 3D responsiveness (i.e if a player gets closer to a sound source the audio gets increasingly louder).

? For those curious about the technicalities: it was made using the howler.JS API on the frontend and a websocket server on node.js, which is responsible to track and coordinate all sounds broadcasted in-game to each client.








"Look At"

[Video: https://www.youtube.com/watch?v=NV5NOvypqz0]



Quote:? Since the minimap is hidden and there are no player blips it makes it harder to locate points of interest; although this is softened with the new audio system, a "look at" framework was implemented to let characters know the general direction of a certain source of sound.



"Hunting"


Quote:? This system has left the experimental stage and was developed further; there was progress in adding classes of animals (aerial &?terrestrial).

? A per-animal loot system was implemented (different animals have a base loot preset with item type & drop probability).

? Projectiles can be used to hunt animals (once sheets are fully implemented hunting will follow WOD mechanics automatically).



  INI Help
Posted by: Fiame - 2021-03-10, 04:23 PM - Forum: Pawn Scripting - No Replies

Hello. Can You guys help me? I am tring to make command like top10. In that command it should be: Name: (player name) Kills: (player kills),

If someone can send me basic code i am going to be very gratefull. Thank you!


  Problem with object attached to vehicle ...
Posted by: DaZzY - 2021-03-10, 10:57 AM - Forum: Questions and Suggestions - Replies (1)

Driver see player flying when he touch an object attached to vehicle this problem can be solved in open.mp ?

[Image: n4bq.png]


  Install SAMP Voice
Posted by: annety - 2021-03-09, 01:41 PM - Forum: Support - Replies (5)

How to install the samp voice in my client?



I tried to put the files from sv_client.zip

https://github.com/CyberMor/sampvoice/re...v3.0-alpha



But my GTA starts to crash now every serrver i try to connect



- my gta have no mods

- i'm using samp 0.3.7


  SetObjectMaterial() weird
Posted by: gokuta - 2021-03-09, 10:31 AM - Forum: Pawn Scripting - Replies (8)

okay, I use this:?



Code:
new objectid = CreateObject(3174, 1345.0, -1400.0, 14.0, 0.0, 0.0, 0.0, 150.0);

SetObjectMaterial(objectid, 0, -1, "none", "none", 0xFFFFFFFF);



This line does almost nothing, it only removes vertex lightning. That's all. The problem is... draw distance suffers!!! I mean my object disappears quickly and abruptly at distance 150.0. First of all... no nice transitions, it disappears fast?and looks horrible.?Second of all... my personal draw distance settings are disregarded now.



Is it some undocumented?SetObjectMaterial flaw that cannot be fixed? How do I use?SetObjectMaterial without fucking up draw distance of my objects?