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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,523
» Latest member: Alik1212
» Forum threads: 2,416
» Forum posts: 12,368

Full Statistics

Online Users
There are currently 380 online users.
» 0 Member(s) | 379 Guest(s)
Bing

Latest Threads
Possibility of Multiplaye...
Forum: General Discussions
Last Post: sandrawelker
4 hours ago
» Replies: 0
» Views: 14
United Gaming Life Rolepl...
Forum: Advertisements
Last Post: Cruncher
Yesterday, 06:18 PM
» Replies: 0
» Views: 45
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
2025-09-15, 02:52 AM
» Replies: 2
» Views: 233
How to create a custom SA...
Forum: Tech
Last Post: HELLHOUND
2025-09-15, 12:12 AM
» Replies: 1
» Views: 844
Silly little render a did...
Forum: Art
Last Post: HELLHOUND
2025-09-14, 09:00 PM
» Replies: 0
» Views: 120
HWID BAN
Forum: Questions and Suggestions
Last Post: HELLHOUND
2025-09-14, 08:44 PM
» Replies: 1
» Views: 952
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: HELLHOUND
2025-09-14, 08:35 PM
» Replies: 1
» Views: 770
San Fierro Cops And Robbe...
Forum: Advertisements
Last Post: Dr0pp
2025-09-13, 08:33 PM
» Replies: 0
» Views: 151
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
2025-09-12, 02:16 PM
» Replies: 1
» Views: 187
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 188

 
  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: Programming - 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: Programming - 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;
}