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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,776
» Latest member: todpis
» Forum threads: 2,373
» Forum posts: 12,331

Full Statistics

Online Users
There are currently 297 online users.
» 0 Member(s) | 295 Guest(s)
Bing, Google

Latest Threads
fdjykiti
Forum: Releases
Last Post: todpis
5 hours ago
» Replies: 0
» Views: 5
sherfhreu
Forum: Pawn Scripting
Last Post: todpis
5 hours ago
» Replies: 0
» Views: 9
asgfhffh
Forum: Questions and Suggestions
Last Post: todpis
5 hours ago
» Replies: 0
» Views: 4
Awakeninga an old server.
Forum: Support
Last Post: Polecalex
Yesterday, 11:33 PM
» Replies: 1
» Views: 171
Recompiling for x86_64 or...
Forum: General Discussions
Last Post: Polecalex
Yesterday, 12:57 AM
» Replies: 0
» Views: 41
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: hiago.sucesso.hs
2025-12-16, 03:40 PM
» Replies: 1
» Views: 169
Is there a WebSocket plug...
Forum: General Discussions
Last Post: hiago.sucesso.hs
2025-12-16, 03:37 PM
» Replies: 0
» Views: 22
What would you start?
Forum: Life
Last Post: HELLHOUND
2025-12-14, 10:32 PM
» Replies: 5
» Views: 10,307
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-14, 02:06 PM
» Replies: 3
» Views: 422
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-13, 07:16 PM
» Replies: 4
» Views: 775

 
  Gas Station´s and Fuel Type
Posted by: SpongeBOZZ - 2023-06-13, 07:45 PM - Forum: Pawn Scripting - No Replies

Hello Guys,

I´m currently scripting my own gamemode, but need help at one point.

I need a FS or codes, where cars have their own Fuel Type and Volume.

Also for gas station´s where prices of fuel types getting randomly.

Hope there is ppl that can help. ty


  Voice Chat
Posted by: Stellet - 2023-06-13, 01:29 PM - Forum: Pawn Scripting - Replies (1)

Hi, I set everything according to the instructions, but when I release the Z or B button, it takes me back to the position where I spawned after connecting to the server, does anyone know why?
Using https://github.com/CyberMor/sampvoice 

https://medal.tv/games/gta-sa/clips/1e0K...MzE4OTA4LA


  Banned for Nothing.
Posted by: FrosT.123 - 2023-06-11, 06:48 PM - Forum: Support - No Replies

Hi, I joined the Open.mp discord a few months ago but suddenly I got banned from it for nothing. As far as I know I did nothing except advertising of a Samp Community. If it is not allowed than I didn't knew. Should be given a chance. Thanks!


  Problem with OnPlayerEditDynamicObject()
Posted by: sergejgamehd - 2023-06-11, 09:34 AM - Forum: Pawn Scripting - Replies (1)

I made a command /create that help's me with Dynamic Systems, so when the owner of the server wants to create something he uses /create, picks what he wants and clicks create. When he clicks create it should create the object and let him edit the dynamic object, but the problem that happens is that the OnPlayerEditDynamicObject() immediately calls the 'case: EDIT_RESPONSE_CANCEL:'.

Here's the code for when the player clicks create:

Code:
//FISH  obj id: 1605
editaRiba[playerid] = NewID(2);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
fish[editaRiba[playerid]] = CreateDynamicObject(1605, X, Y, Z, 0.0, 0.0, 0.0, -1, -1, -1,300.0,300.0);
EditDynamicObject(playerid, fish[editaRiba[playerid]]);
HideObjCreationPTD(playerid);

 


  AttachTrailerToVehicle Bug
Posted by: Torque - 2023-06-06, 05:56 PM - Forum: Pawn Scripting - No Replies

Hello, perhaps I'm just doing it wrong but when I use AttachTrailerToVehicle the trailer just keeps reattaching itself over and over again. Even if it's a Utility Trailer and Utility Van. They hook up fine as they do in single player, but if I use the function to connect them, it doesn't stay connected and just keeps making the noise every 500ms.

Is there a way to do this? Because I'd like to attach the utility trailer to a Huntley or something but I'm unable too.


  PlayAudioStreamForPlayer URL
Posted by: Torque - 2023-06-03, 02:04 AM - Forum: Pawn Scripting - Replies (1)

Is there a way to hide the URL that prints out when you run PlayAudioStreamForPlayer?


  High consumption of MEM%
Posted by: mariaaguirrenp - 2023-05-31, 12:36 PM - Forum: Support - Replies (1)

Hi everyone, a pleasure to use this Forum.

I came with a question or query if you can help me solve it. The question is the following, first I put them in context.
I have a SA:MP server, when I use the TOP console command in Linux, as you know, it gives me the statistics of the server's operation, I have noticed that "MEM%" is very high.
To be specific, if I completely restart the server and restore these values to almost 0, it is possible that in no more than 10 days the consumption of MEM% reaches 20%.

My question is the following. Is this normal? What is this due to? Is there a way to know that I consume so much?

I went through all my GM code and optimized various things, but this is still the same. He's not a very big GM either.
Could it be MySQL? Since it uses and saves queries in CACHE.

I will be waiting for your answers, thank you very much!


  how to set timer when player logout?
Posted by: naufalikbal00783 - 2023-05-30, 02:38 AM - Forum: Pawn Scripting - No Replies

Hi, I apologize if my English is not very good, I use a translator. I want to ask, I want to make a spawn system, if the player has logged out beyond the specified time, he cannot choose the last spawn. How do I set the timer?


  Server creating help
Posted by: [I]ncognito - 2023-05-26, 08:00 AM - Forum: Support - Replies (1)

Hello!!
Guys can anyone send me complete guidance for creating server of SAMP,
From 0 level to Pro level
Any Youtube video or any link from where i can learn everything...
Please could be thankful to you all!!


  I need a code to find the name and check its existence in the database.
Posted by: imnikolaidev - 2023-05-24, 09:20 PM - Forum: Pawn Scripting - No Replies

I need a code to find the name and check its existence in the database, but I don't know what is the best code for this task so that it works at the highest possible speed and is optimal.

Sorry for my bad english ;)

Witch one is better?

Code:
Std::MySQLCheckAccount(const name[]) {
new Query[128];
format(Query, sizeof(Query), "SELECT 1 FROM `users` WHERE `username`='%s' LIMIT 1", name);
mysql_tquery(gMySQL, Query, "OnMySQLCheckAccount");
return true;
}
Void::OnMySQLCheckAccount() {
switch cache_num_rows() do {
case false: return print("Not find");
default: return print("Find");
}
}


Or

Code:
Std::MySQLCheckAccount2(const name[]) {
inline const checkAccount() {
switch cache_num_rows() do {
case false: return print("Not find");
default: return print("Find");
}
}
MySQL_PQueryInline(gMySQL, using inline checkAccount, "SELECT `username` FROM `users` WHERE `username` = '%s' LIMIT 1", name);
return true;
}