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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,247
» Latest member: JamesT
» Forum threads: 2,378
» Forum posts: 12,290

Full Statistics

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

Latest Threads
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
47 minutes ago
» Replies: 0
» Views: 6
How to compile pawn scrip...
Forum: Tech
Last Post: reynoldschicago
2 hours ago
» Replies: 1
» Views: 738
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
11 hours ago
» Replies: 0
» Views: 7
Servidor novo RPG profiss...
Forum: Chat
Last Post: tcharlesmeurer
11 hours ago
» Replies: 0
» Views: 9
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
Yesterday, 11:05 PM
» Replies: 2
» Views: 23
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 40
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,168
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 54
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 433
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 582

 
  Offensive-Core: TDM
Posted by: NikitaFoxze - 2024-08-15, 11:22 AM - Forum: Gamemodes - Replies (2)

[Image: offensive-core-2.png?raw=true]


Offensive-Core - is a large project combining a multifunctional game mode and accompanying files written in the Pawn language for servers in SA-MP and open.mp. Based on the implemented methods, you can create absolutely favorite modes and submodes for them.

The code can be easily upgraded and expanded for your needs. The project presents the following modes: TDM, DM and Room.

The project is not a modification of other game modes. It is written and thought out completely from scratch.

Main systems
  • Administration
  • Transport
  • Inventory
  • Marketplace 
  • Weapon and token drop 
  • Quests Dean's Assistant
  • Modes: TDM, DM, Room
The logic of operation of all modes
First of all, you need to know that each mode is in its own folder and has its own systems in files.
In the root folder of each mode there is a folder "locations", in it there is a file with various systems for manipulating locations and the locations themselves are in their own folders.

When the server is launched, various systems are initialized and locations for modes (TDM, DM) are created/loaded. When a location is changed in a mode, all created components (pickups, objects, etc.) on the location are deleted and new ones are created for the new location.

This method of creating and deleting locations has many advantages.
Modes can be divided into several sessions, so you need to think about SA-MP limits, and more specifically about the limits on creating Transport and GangZone, other components such as pickups are created dynamically.

To summarize, each mode has its own folders and subfolders, each mode can also be divided into sessions, and locations in them are created and deleted.
All modes are united by the file "system.pwn" in the folder "game-modes". This can be seen in the code itself.

Architecture
The project architecture was reduced to maximum simplification and ease of use. As mentioned above, each mode has its own folder, as do the other systems. The most basic functions and systems are in the file "offensive-core.pwn". The remaining systems are in the "sources" folder. Some systems are located right there, these are "vehicle", "admin", etc. A separate subfolder "player" was allocated for the player, for the "game-modes" modes.

The distribution of systems into files was logical, since storing tens of thousands of lines of code in one file was already quite difficult for editing anything.

Files
header.inc - stores information that in theory or in practice can be used in other systems (vars, defines, functions).
system.pwn - these are the systems themselves used for any purpose.

Note
Initially, all the code was in one file and therefore you can find illogical moments in the code, but they do not interfere with work at all.

Powerful TDM mode
The highlight of all of this is the TDM mode. For each location, you can create different individual moments and situations, for example, in the "Desert" location, you can drop a nuclear bomb on the opposing team.

To do this, you need to capture the "Communication Point", then blow up the door that is nearby and launch the satellite.
Then get the access codes with the /accode command and get on the submarine and launch a nuclear missile there, which will fly to the enemy base.
With existing systems specifically for TDM mode, this is already easily implemented directly in the file for the "Desert" location. 

With all this, it is easy to manipulate various components through code, and these same components created will be automatically deleted when changing the location and resumed again! This works in different sessions and they are not connected to each other.

Difference between RU and RU-EN version
The RU and RU-EN versions differ in the choice of language on the server and fundamentally in some moments.
The server was initially made for the RU-EN version, but soon it turned out to be unnecessary and even very disturbing.

Both versions work, but it is recommended to choose the RU version, in it the logic of creating CreatePlayer3DTextLabel has been changed to the dynamic CreateDynamic3DTextLabel.

In the RU-EN version, 3DText had to be created separately for each player using the CreatePlayer3DTextLabel function, and this turned out to be very problematic and inconvenient.

Wiki
More information can be found in the Wiki section

Dependencies
Plugins:
  • sscanf v2.13.8
  • streamer v2.9.6
  • mysql vR1-4
  • Pawn.CMD v3.4.0
  • Pawn.RakNet v1.6.0
  • Pawn.Regex v1.2.3
  • rustext v2.0.8
  • FCNPC v2.0.10 (not needed for open.mp)
  • CrashDetect v4.22
Includes:
  • weapon-config
  • nex-ac v1.9.64
  • foreach v2.2.6
  • mdialog v1.4.3
  • cinterface v1.0.0
  • StreamerFunctions
  • progress2



Download
Github
Google Drive
Yandex Drive

Thanks
NexiusTailer - great help on various topics
Neutralneu (Neuty) - implementation of the system for bots
Roberto_Coluccio, Artem_Gorden, Danil_Marciface, VanilaSW, Dima_Rendi, Fix_Unvardo, Itsuki_Yorimoto,
Flatt_Delx, Fredorico_Viton, Demetrio_Santini, Maks_Anurov, Kocmoc, Vladislav_Barsov,
Doni_Visage, DELIVER, Richi_Klay, Sebastian_Undeground
- assistance in testing


Exclamation Open MP shutting down after loaded components!
Posted by: anil_erdogan0 - 2024-08-14, 10:34 AM - Forum: Support - No Replies

Type: Server
OS: Windows 10 64-Bit
S.Ver: 0.3.7 R2-2
Plugins: Not Installed
YSI: Not Icluded

I have a gamemode running on SAMP.
I copied this gamemode to Open:MP server for DB functions.
I changed every Qawno error with Open.MP wiki.
But i run "omp_server.exe", server loading components and shutting down after loaded components.

"log.txt":

Code:
Starting open.mp server (1.2.0.2670) from commit 41ebf182bf73dc9cb11841bfe6b0179ba31f9dd5
Loading component Actors.dll
Successfully loaded component Actors (1.2.0.2670) with UID c81ca021eae2ad5c
Loading component Checkpoints.dll
Successfully loaded component Checkpoints (1.2.0.2670) with UID 44a937350d611dde
Loading component Classes.dll
Successfully loaded component Classes (1.2.0.2670) with UID 8cfb3183976da208
Loading component Console.dll
Successfully loaded component Console (1.2.0.2670) with UID bfa24e49d0c95ee4
Loading component CustomModels.dll
Successfully loaded component CustomModels (1.2.0.2670) with UID 15e3cb1e7c77ffff
Loading component Databases.dll
Successfully loaded component Databases (1.2.0.2670) with UID 80092e7eb5821a96
Loading component Dialogs.dll
Successfully loaded component Dialogs (1.2.0.2670) with UID 44a111350d611dde
Loading component GangZones.dll
Successfully loaded component GangZones (1.2.0.2670) with UID b3351d11ee8d8056
Loading component LegacyConfig.dll
Successfully loaded component LegacyConfig (1.2.0.2670) with UID 24ef6216838f9ffc
Loading component LegacyNetwork.dll
Successfully loaded component RakNetLegacyNetwork (1.2.0.2670) with UID ea9799fd79cf8442
Loading component Menus.dll
Successfully loaded component Menus (1.2.0.2670) with UID 621e219eb97ee0b2
Loading component Objects.dll
Successfully loaded component Objects (1.2.0.2670) with UID 59f8415f72da6160
Loading component Pawn.dll
Successfully loaded component Pawn (1.2.0.2670) with UID 78906cd9f19c36a6
Loading component Pickups.dll
Successfully loaded component Pickups (1.2.0.2670) with UID cf304faa363dd971
Loading component Recordings.dll
Successfully loaded component Recordings (1.2.0.2670) with UID 871144d399f5f613
Loading component TextDraws.dll
Successfully loaded component TextDraws (1.2.0.2670) with UID 9b5dc2b1d15c992a
Loading component TextLabels.dll
Successfully loaded component TextLabels (1.2.0.2670) with UID a0c57ea80a009742
Loading component Timers.dll
Successfully loaded component Timers (1.2.0.2670) with UID 2ad8124c5ea257a3
Loading component Unicode.dll
Successfully loaded component Unicode (1.2.0.2670) with UID 8ffb446f8353922b
Loading component Variables.dll
Successfully loaded component Variables (1.2.0.2670) with UID 75e121848bc01fa2
Loading component Vehicles.dll
Successfully loaded component Vehicles (1.2.0.2670) with UID 3f1f62ee9e22ab19
Loaded 21 component(s) from C:\Users\Anıl\Desktop\opensv\components


  Grow Canabis Pawno Error
Posted by: nhocngu24 - 2024-08-13, 03:47 AM - Forum: Pawn Scripting - Replies (1)

error 012: invalid function call, not a valid address
 warning 215: expression has no effect
 error 001: expected token: ";", but found ")"
 error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

4 Errors.


Quote:p, li { white-space: pre-wrap; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if (dialogid == DIALOG_CANNABIS) {
        if (response == DIALOG_RESPONSE_OK) { // Kiểm tra nếu phản hồi là OK
            switch (listitem) {
                case 0: // Đặt chậu
                {
                        PlacePlantPot(playerid); ( where error)
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể đặt chậu.");
                    }
                }

                case 1: // Gieo hạt
                {
                        PlantSeeds(playerid);
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể gieo hạt.");
                    }
                }

                case 2: // Tưới nước cho cây
                {
                        WaterPlants(playerid);
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể tưới nước cho cây.");
                    }
                }

                case 3: // Phun thuốc trừ sâu
                {
                        ApplyPesticide(playerid);
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể phun thuốc trừ sâu.");
                    }
                }

                case 4: // Bón phân
                {
                        ApplyFertilizer(playerid);
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể bón phân.");
                    }
                }

                case 5: // Thu hoạch
                {
                        HarvestCannabis(playerid);
                    } else {
                        SendClientMessage(playerid, COLOR_RED, "Không thể thu hoạch.");
                    }
                }

                case 6: // Đóng
                {
                    // Đóng hộp thoại hoặc thực hiện bất kỳ hành động nào khác nếu cần
                }

                {
                    SendClientMessage(playerid, COLOR_RED, "Lựa chọn không hợp lệ.");
                }
            }
        } else if (response == DIALOG_RESPONSE_CANCEL) { // Kiểm tra nếu phản hồi là Hủy bỏ
            SendClientMessage(playerid, COLOR_RED, "Hộp thoại đã bị hủy.");
        }
    }
    return 1; // Trả về 1 để chỉ ra rằng phản hồi đã được xử lý
}


Question Can I use MS Access for Database on Open:MP?
Posted by: anil_erdogan0 - 2024-08-07, 09:09 AM - Forum: Questions and Suggestions - Replies (1)

I want create a new Roleplay server.
I tried learn MySQL or alternatives (like SQLite) but I don't like its running style.
I think, I can use a new modern method for storing data.
Can I use Microsoft Access database (.mdb / .accdb) files or Libre Office / Open Office database (.odb) files on OPEN:MP with C++?
If I can use, how? (I don't start coding now, if this way can using I start developing.)
I know, I can't do this on older SA:MP. I hope I can do this on OPEN:MP.
If I can't, you can write other ways like .json (actually i don't know json can running).

Thanks for reading and sorry for my half-bad English. 😊


  Autorefundsystem errors
Posted by: COLT45 - 2024-08-05, 07:25 PM - Forum: Pawn Scripting - Replies (1)

Code:
new bool:AlreadyRefunded[ MAX_PLAYERS ];
CMD:refundme( playerid )
{
if( AlreadyRefunded[ playerid ] == true ) SendClientMessage( playerid, COLOR_GREY, "You're already refunded, what are you trying to do, mhm..?" );
else
{
PlayerInfo[playerid][pLevel] = PlayerInfo[playerid][pLevel]+3;
GiveMoney(playerid, 2500000);
PlayerInfo[playerid][pDonateRank] = 2;
format(str, 32, "%02d/%02d/%d", Month, Day, Year);
strmid(PlayerInfo[giveplayerid][pVIPJoinDate], str, 0, strlen(str), 255);
format(str, 32, "%02d/%02d/%d", Month +1, Day, Year);
strmid(PlayerInfo[giveplayerid][pVIPExpDate], str, 0, strlen(str), 255);
if(Month == 12)
{
format(PlayerInfo[giveplayerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year +1);
}
format(str, sizeof(str), "Join Date: %s, Expire Date: %s", PlayerInfo[giveplayerid][pVIPJoinDate], PlayerInfo[giveplayerid][pVIPExpDate]);
SendClientMessage(giveplayerid, COLOR_GRAD2, str);
}
return 1;
}


And the errors i get when compiling script: 
Code:
../gamemodes/inc/autorefundsys.inc(10) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(11) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(12) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(13) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(14) : error 017: undefined symbol "Month"
../gamemodes/inc/autorefundsys.inc(16) : error 017: undefined symbol "giveplayerid"
../gamemodes/inc/autorefundsys.inc(18) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(18) : error 017: undefined symbol "str"
../gamemodes/inc/autorefundsys.inc(18) : error 029: invalid expression, assumed zero
../gamemodes/inc/autorefundsys.inc(18) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.


Im really new to scripting :D if you guys can figure this out, could you explain how do you define symbols? like str, giveplayerid?


  What's the deal with timers?
Posted by: M.B. Kovas - 2024-08-05, 08:32 AM - Forum: Pawn Scripting - No Replies

Hello everyone.

I've gotten back into scripting after a long delay and was once again reminded of the issues regarding timers. I am not using any timer plugins (I'll get to that later) so this regards the native 'SetTimer' and 'SetTimerEx'. The inaccuracy of them is one thing, although there is another problem - sometimes the timers are either not calling the function or they are not starting at all. My primary assumption was that something was off with the code, but a specific test I have conducted has proven to me that this might be beyond my control.

I have set up a print/SCM message for a select few functions that timers are supposed to execute, and the proportion is something along the lines of 3-5 times out of 10 the function not being called at all. I have even tried a memory-costing alternative of setting up three timers to call the same function after the same amount of time as an insurance policy, and usually I would get 3 messages back, but sometimes I would get only 2 - one of the timers would not start/call the function. Needless to say I would rather not resort to multiplying timers for the same thing to not cause data packet overload.

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetTimerEx("TestFunction", 1000, false, "i", playerid);
    SetTimerEx("TestFunction", 1000, false, "i", playerid);
    SetTimerEx("TestFunction", 1000, false, "i", playerid);
    return 1;
}

forward TestFunction(playerid);
public TestFunction(playerid)
{
    SendClientMessage(playerid, -1, "Test");
    return 1;
}
For example, this particular code above seemingly needs to return the message three times, but on some occasions it only returns it twice. This is a major obstacle for me.

My question, however, is not whether the native timers are faulty. That's a given. My question would rather be what are the most stable and reputable timer plugins and includes out there? What do you, scripters, personally like to use? This also concerns the accuracy of timers.

We can open a broader discussion from this.


  Open Roleplay - Medium Roleplay
Posted by: thebust3rs - 2024-08-04, 08:15 AM - Forum: Advertisements - No Replies

👋 Welcome to Open Roleplay!

🏙️ Set in San Fierro, our server hosts a unique location for our players to enjoy. Most servers are set in Los Santos which has been done to death! With custom mappings, we've refreshed San Fierro for all to enjoy!

ℹ️ We are a Medium Roleplay community which acts as a direct bridge for anyone to come enjoy! Whether you're not great at roleplay or you're an expert - we have a spot for you in our community.

💻 The development team at Open Roleplay work to push updates out on a monthly basis so that you never get bored! We also love to listen to our community and take all feedback we are given.

📱 Don't have anything to play on but mobile? No worries, mobile players are welcome too at our server alongside 0.3.7 AND 0.3.DL players.

🤵 We have a welcoming staff team ready to help you at short notice. Whether you need help getting started or need to report an issue, our staff will always be around to lend a hand.

🚓 Live the life you want. Become a criminal and have shootouts with the police, take over turfs with your gang members, rob crate island or even the bank. Or you could become a medic and help those in need.

Discord Server: https://discord.gg/AcgTkbDMUr

# BETA Phase!

# Staff Recruitment are open for now lets join with us!

[Image: vdHRfBu]


  Il reste des français sur samp ??
Posted by: Lionel62300 - 2024-08-04, 06:58 AM - Forum: French/Fran?ais - Replies (2)

Bonjour, je suit un ancien de gta Samp ca date un peu 
j'ai fait plusieurs serveur SFRP, IFRP, LACRP , jetait développeur pour la plupart ..
J'aimerais juste savoir si des personnes française joue encore a samp en 2024 ?


Information SAMP and Kalcor/Kyeman
Posted by: Rintos - 2024-08-02, 02:45 PM - Forum: Chat - Replies (3)

Im going straight to the point, ive done some research about the history of SAMPnull and as i have research about the members of the SAMP development team (Silent, Wicko, dugi, CrazyBob) i found out that Y_Less is still somehow active (https://github.com/pawn-lang/YSI-Includes). Im wondering if he works with the Open.MP team, and also what happened to the SAMP development team, like what made them dissolve, leaving only Kalcor to add security updates to 0.3.7 and make 0.3.8 (0.3DL-R1)



Some parts of my script, its translated to english, originally this is written in Spanish as its where im from.



The development of SAMP



As soon as San Andreas came out for PC, the development of SAMP began. At first there was a lot of controversy. The developers announced that SAMP would avoid being a multiplayer experience full of Deathmatch, Roleplays and different play styles like VCMP was and would have a mode . Cooperation in which you could play with five friends, with six slots on each server. This idea was received poorly by the community and the GTANet forums were filled with hate towards the development team's decision.



About three months after this decision, Kyeman (Kalcor at the time), the head of the team, decided to abandon the project in the middle of the Cooperation mode debate, leaving all the work and code to the second in command, spooky, who changed the project name to GTA:Multiplayer.



Within about a month, Kyeman returned and decided to help out on the project, at this point the Co-op mode idea was completely scrapped and the project was renamed to SAMP (San Andreas Multiplayer).





The versions of SAMP



I am not going to talk about all versions of SAMP, rather I will focus on 0.3.7, its patches and the most important one. It was October 18, 2019 and Kalcor had declared that he had abandoned SAMP completely, at that time the latest version was 0.3.7-R4, according to Kalcor, he never moved towards 0.4 because he had the belief that four was a symbol of bad luck, he called his version rating style "kalver", the R meant a small change, a security patch, and the change in number, for example 0.2 to 0.3 meant a major update . In any case, although Kalcor abandoned the project in 2019, it was not until November 2022 that he released a new security patch, patch 0.3.7-R5. Kalcor's words. "There is an exploit in the client. It is a critical RCE vulnerability that allows server owners to execute unauthorized code on players' PCs" clarifying that the -R versions contained security patches and bug fixes, finally advising to the community. "Always use the latest version"



Please, help.

[Image: MMZHKrf.jpeg]


  [ENG] Valhalla RolePlay Supreme V3 Top VIP Server!
Posted by: 016haikalfais - 2024-08-02, 10:15 AM - Forum: Advertisements - No Replies

@everyone

# [ENG] Valhalla Roleplay Supreme V3

# Add In Your Favorite List IP: 162.19.133.164:7262

**Hello Dear Civilian's Today We Introduce Our Best SA-MP RolePlay!**
**Server 24/7 Online And Waiting For You!**
**The Server Is Open Unlimited RolePlay Server Top VIP Servers!**
**We Provide You Best RolePlay Server Its 100% Light RP No Stirct Rules Play Your Own Way Thank You!**
**24/7 Our Staff Working On Discord And Forum You Contact Us Anytime Click Link Above!**


**Discord : https://discord.gg/RmJFyW4v **


**Forum: https://valhalla-roleplay.forumotion.com/ **


**- 24 Factions Top Premium**

**- Business / Houses**

**- /autoinv Auto Join Faction Which You Select**

**- /autorang rankup factions**

**- /promocode Giveaways Everydays Code= supreme / updatev3**

**- Dynamic faction Quest**

**- 3D Dynamic Accesories **

**- /invent or Press Y Inventory System**

**- Bank Robs / Bomb Blast Quest**

**- President System / Election System**

**- Container system**

**- /donaterub - /donate VIP Things**

**- Cases System x2 Luck**

**- Garage System - Up To 30 Vehicle Allowed To Buy!**

**- Anti Cheat Provided**

**- Account Safety IP Security Active!**

**- Gang Capture System 3 Differents - Teritories/ghetto/Most kills**

**- Side Jobs Provided!**

**Thank You Joining With Us Beloved Founder Of [ENG] Valhalla Roleplay Supreme V3!**