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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,759
» Latest member: LCSLaces
» Forum threads: 2,368
» Forum posts: 12,320

Full Statistics

Online Users
There are currently 300 online users.
» 1 Member(s) | 296 Guest(s)
Bing, Google, Baidu, cosminupgaming

Latest Threads
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
Yesterday, 04:57 PM
» Replies: 0
» Views: 21
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
Yesterday, 03:29 PM
» Replies: 0
» Views: 17
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 34
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 172
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 231
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2025-12-06, 01:43 AM
» Replies: 3
» Views: 719
Zona América del Sur DM+ ...
Forum: Advertisements
Last Post: kevinberriosflores
2025-12-05, 10:59 PM
» Replies: 0
» Views: 65
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-05, 02:06 PM
» Replies: 0
» Views: 117
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 114
Garsiono's, Ricardo's, Tr...
Forum: Advertisements
Last Post: drwnrbbt
2025-12-01, 10:15 AM
» Replies: 0
» Views: 104

 
  GetVehicleParamsEx
Posted by: unbelievable_10 - 2019-07-01, 08:32 PM - Forum: Pawn Scripting - Replies (1)

So what I want is that there is a check if the bonnet of the car (hood) is whether opened or closed, if its closed then player would receive a return SCM that he must open bonnet first in order to use the command, how can I make it?


  command usage limit
Posted by: unbelievable_10 - 2019-07-01, 12:23 AM - Forum: Pawn Scripting - Replies (2)

So I made command /medkit use and buy, when player types /medkit buy, his tokens gets in -, while 1 medkit gets in , problem is that I put limit that they can use /medkit buy max 3 times and so that they cannot abuse it, but when they buy all 3 medkits, it will say "You can't buy more medkits this round!", when they use /medkit use, they will get Medkit -1, and they will have 2 medkits, which will make them to be ABLE to buy the medkit again and again and again if you understand, so I want to make that they can only write /medkit buy 3 times and when they spend third medkit that they cannot again buy it, how to fix? thanks[/size][/color]

Code:
CMD:medkit(playerid, params[])
{
? ?new Float:HP;
? ?GetPlayerHealth(playerid, HP);
? ?if(playerTazed[playerid] == true || playerCuffed[playerid] == true || !IsPlayerSpawned(playerid) || playerWounded[playerid] > 0) return SFM(playerid, COLOR_ACMD, "[!] You cannot use this right now!");
? ?if(PlayerInfo[playerid][inGame] == false) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You're not in the copchase!");
? ?new option[256];
? ?if(sscanf(params, "s[256]", option)) return SFM(playerid, COLOR_USAGE, "[USAGE] medkit <mymedkits/buy/use/help>");
? ?if(!strcmp(option, "mymedkits"))
? ?{
? ?SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You currently have {FF6347}[{FFFFFF}%d{FF6347}] {FFFFFF}medkits!", PlayerInfo[playerid][MedKit]);
? ?}
? ?else if(!strcmp(option, "buy"))
? ?{
? ?if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) != PLAYER_STATE_PASSENGER) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You can only buy medkits as a driver/passenger!");
? ?if(PlayerInfo[playerid][Tokens] < 250) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You dont have enough tokens!");
? ?if(PlayerInfo[playerid][MedKit] >= 3) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You can buy max 3 med kits per chase!");
? ?PlayerInfo[playerid][Tokens] -= 250;
? ?PlayerInfo[playerid][MedKit] = 1;
? ?cmd_me(playerid, "grabs some bandages from the vehicle");
? ?SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You've sucessfully bought one medkit for 250 tokens!");
? ?}
? ?else if(!strcmp(option, "use"))
? ?{
? ?if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You can only use medkits while onfoot!");
? ?if(gettime() < Cooldown[playerid]) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}Please wait before using a medkit again!");
? ?if(HP >= 100.0) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You can only use med kits if your health is below 100%!");
? ?if(PlayerInfo[playerid][MedKit] == 0) return SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You have no medkits!");
? ?PlayerInfo[playerid][MedKit] -= 1;
? ?SetPlayerHealth(playerid, HP);
? ?ApplyAnimation(playerid,"MEDIC","CPR",4.1, 0, 1, 1, 1, 5000, 1);
? ?SetTimerEx("Unfreeze", 5000, false, "d", playerid);
? ?cmd_me(playerid, "bandages himself up.");
? ?Cooldown[playerid] = gettime()  30 * 2;
? ?SFM(playerid, COLOR_ACMD, "[!] {FFFFFF}You've used one medkit and you've fixed your health for %! You've {FF6347}[{FFFFFF}%d{FF6347}] {FFFFFF}medkits left!", PlayerInfo[playerid][MedKit]);
}
else if(!strcmp(option, "help"))
{
? ?return cmd_medkithelp(playerid);
}
? ?return 1;
}


  Getting Started
Posted by: yusecozug - 2019-06-30, 08:36 AM - Forum: Chat - Replies (4)

New guy here, I don't think you need an entire GTA:SA installation (with all the audio files and cut-scenes) if you're only doing multiplayer, how do I get started? What do I need to get?


I ask this so I don't go pirating a?4GB gta:sa game only to find out it's not 1.0 or something like that.


Anyone experienced enough to take me through the initial steps? I'm asking for help, not someone to hold my hand.

I don't want to go make time-wasting mistakes.

Thank you.


  Docker-compose file for servers using a MySQL database
Posted by: Freaksken - 2019-06-29, 03:50 AM - Forum: Releases - Replies (1)

This small repository contains an example docker-compose file for SA-MP servers using a MySQL database.


  • Put the docker-compose.yml file in the root folder of your server.

  • Open the file and change the MYSQL_ROOT_PASSWORD to the root password of your MySQL database.

  • Run?docker-compose up to start the docker containers.


Heart [SA-MP 0.3.7] Santos Gaming | Role-Play Project
Posted by: ShowTime - 2019-06-29, 02:40 AM - Forum: Serwery - No Replies

Hej wszystkim!



Jestesmy w trakcie tworzenia projektu Santos Gaming, kt?ry ma na celu zrewolucjonizowac Polska scene Role Play na platformie SA-MP. Wiele serwer?w, kt?re znajduja sie na wersji 0.3.7 oraz 0.3 DL jest krytykowanych pod wzgledem braku zmian, oraz zlej administracji - Dlatego my chcemy wyciagnac pomocna dlon w strone graczy i stworzyc cos wyjatkowego, co stanie sie nowym domem dla wyjadaczy RP, oraz zwyklych niedzielnych graczy! Zachecamy do dolaczania na nasz serwer discord i pisania propozycji, oraz dyskusji. ??



?? Co oferujemy?



? Profesjonalna administracje z doswiadczeniem - nie popelniamy tych samych bled?w co inne serwery.

? Kilku Developer?w, kt?rzy codziennie pracuja nad rozwijaniem skryptu serwera, oraz forum.

? Ekipe, kt?ra jest pozytywnie nastawiona wobec kazdego gracza, bez wzgledu na to z jakiego serwera pochodzi.

? Mozliwosc dolaczenia do naszej ekipy i rozwijania projektu gry.

? Oryginalny skrypt serwera, oraz forum, kt?re zostanie stworzone na wlasnym silniku, kt?ry zostal stworzony przez nas.



?? Dolacz do nas juz dzis! ??



Serwer discord:?https://discord.gg/nNvfaXP

Strona WWW:?https://santosgaming.pl/


  Request for cleaner library logs in the console
Posted by: Freaksken - 2019-06-27, 05:32 AM - Forum: General Discussions - Replies (7)

Request for plugin/include developers to stop doing shit like this:

Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

gamemodetext = "Unknown" ?(string)
password = "" ?(string)
bind = "" ?(string)
nosign = "" ?(string)

Server Plugins
--------------
Loading plugin: mysql
>> plugin.mysql: R41-4 successfully loaded.
?Loaded.
Loading plugin: sscanf


===============================

? ? ?sscanf plugin loaded. ? ?

? ? ? ? Version: ?2.8.3 ? ? ? ?

?(c) 2018 Alex "Y_Less" Cole ?

===============================

?Loaded.
Loading plugin: streamer


*** Streamer Plugin v2.9.4 by Incognito loaded ***

?Loaded.
Loading plugin: FCNPC

-------------------------------------------------
? ? FCNPC - Fully Controllable NPC v2.0.0
? ? ? ? ? ?Windows SA-MP 0.3.7 R2
? ? ? ? ? Jun 25 2019 at 00:12:08

?Author: ? ? ? OrMisicL (2013 - 2015)
?Continued by: ziggi ? ?(2016 - present)

?See full credits in the README.md file
-------------------------------------------------

Loading...

-------------------------------------------------
? ColAndreasv1.4.0

? Created By:
? ? [uL]Chris42O
? ? [uL]Slice
? ? [uL]Pottus
-------------------------------------------------

Loading...
ColAndreas v1.4.0 Loaded.
?Loaded.
Loading plugin: timerfix
?>> TimerFix v1.5 successfully loaded.
?Loaded.
Loading plugin: YSF
ARRAY_ConsoleCommands: 4e43d8


===============================

? ? ? ?YSF - kurta999's version R19 loaded

? (c) 2008 Alex "Y_Less" Cole - (c) 2010 - 2016 kurta999

? ?Server version: 0.3.7 R2-1

? ?Operating System: Windows

? ?Built on: Mar 11 2017 at 10:32:34

===============================

?Loaded.
Loaded 6 plugins.


Started server on port: 7777, with maxplayers: 50 lanmode is OFF.


Filterscripts
---------------
?Loading filterscript 'example.amx'...
Loaded collision data.
?Loaded 1 filterscripts.

[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).
Loading Map.
Loaded Map.
Number of vehicle models: 94

--- Server Shutting Down.
plugin.mysql: Unloading plugin...
plugin.mysql: Plugin unloaded.


===============================

? ? sscanf plugin unloaded. ? ?

===============================



*** Streamer Plugin v2.9.4 by Incognito unloaded ***

FCNPC Unloaded.
[plugin.timerfix] Plugsin successfully unloaded!


==============

?YSF - kurta999's version R19 unloaded

==============

Example of what it could be, without all of this cluttering:
Code:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

Plugins
--------------
?Loading plugin: mysql
vR41-4
? Loaded.
?Loading plugin: sscanf
v2.8.3
? Loaded.
?Loading plugin: streamer
v2.9.4
? Loaded.
?Loading plugin: colandreas
v1.4.0
? Loaded.
?Loading plugin: FCNPC
v2.0.0
? Loaded.
?Loading plugin: timerfix
v1.5.0
? Loaded.
?Loading plugin: YSF
vR19
? Loaded.
?Loaded 7 plugins.

Filterscripts
---------------
?Loading filterscript: example
? Loaded.
?Loaded 1 filterscripts.

Gamemode
---------------
?Loading gamemode: bare
[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).
[ColAndreas] Info: Loading collision data.
[ColAndreas] Info: Loading Map.
? Loaded.

--- Server Shutting Down.
?Unloading gamemode: bare
? Unloaded.

?Unloading plugin: mysql
? Unloaded.
?Unloading plugin: sscanf
? Unloaded.
?Unloading plugin: streamer
? Unloaded.
?Unloading plugin: colandreas
? Unloaded.
?Unloading plugin: FCNPC
? Unloaded.
?Unloading plugin: timerfix
? Unloaded.
?Unloading plugin: YSF
? Unloaded.
?Unloaded 7 plugins.

Now ask yourself,?which of these 2 examples?would?you like to consult, when for once?you really really need to.

Some of this is clutter is baked into the server itself, but arguably?those logs are somewhat useful. However, pretty much all of the logs done during?plugin/include init and exit?have no benefit, except for maybe the version number during init.
Why is this credits clutter so?necessary? It's annoying and makes your logs actually less readable and useful. Imagine if every time?you used a third party?library in C and started your program, some credits shit about that library gets printed to the console. Sometimes those libraries are written by lots and lots of people. Now imagine not using just 1 third party library...?For some reason this is just a thing that happens in this community. I'm guessing because 1 person did it in the early days and everyone else just followed.
So, I propose a few guidelines for readable,?consistent and?actually useful?logs:
  1. On plugin/include init, only print the version number?using the following format: v1.0.0
  2. On plugin/include exit, don't print anything.
  3. During the lifetime of the plugin/include, use one of these formats for different types of messages:
    • Info messages:?[LIBRARY_NAME] Info: YOUR_MESSAGE.
    • Error messages:?[LIBRARY_NAME] Error: YOUR_MESSAGE.
    • Warning messages:?[LIBRARY_NAME] Warning: YOUR_MESSAGE.
  4. You can break rule 1 and 2 only if you're absolutely sure that what you need to log is very useful information and that you?use the formats from rule 3.
What follows?are?examples for each rule, taken from the cleaned up code snippet above.

Rule 1:
Just the version number,?preferably using semantic versioning.
Code:
v2.8.3

Rule 2:
Nothing, as mentioned.
Code:
?

Rule 3:
Info and error messages.
Code:
[ColAndreas] Info: Loading Map.
[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).

Rule 4:
Loading the ColAndreas collision data is useful information to know.
Code:
[ColAndreas] Info: Loading collision data.

I'm not asking for people not to be credited for their work. I'm asking to stop this stupid console cluttering.
Now, let's all start doing this and Make Logs Great Again!

Log and config files:
Adding to this, when a library has its own dedicated log file (e.g. mysql.log) it should go in the?logs?folder in the root of the server directory. Alternatively, if the library uses more than 1 log file, all those files should be together in a folder (e.g. logs/mysql). Configuration files (e.g. YSF.cfg) should go in the configs?folder in the root of the server directory. Alternatively, if the library uses more than 1 config file, all those files should be together in a folder (e.g. configs/mysql).


  easyDialog & pawn compiler
Posted by: Zow - 2019-06-25, 05:47 AM - Forum: Pawn Scripting - Replies (1)

F:\S\pawno\include\easyDialog.inc(95) : error 035: argument type mismatch (argument 4)
F:\S\pawno\include\easyDialog.inc(99) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.10.9? ? ?Copyright © 1997-2006, ITB CompuPhase

2 Errors.

I use them both

easyDialog : https://github.com/Awsomedude/easyDialog
samp-stdlib : https://github.com/sampctl/samp-stdlib

Code:
ShowPlayerDialog(playerid, 32700, style, caption, string, button1, button2); // line 95
ShowPlayerDialog(playerid, 32700, style, caption, info, button1, button2); // line 99


Video [Showcase] Dynamic Gate System
Posted by: Stefhan - 2019-06-23, 05:25 PM - Forum: Videos and Screenshots - No Replies

An incredibly advanced and user-friendly gate system. It is capable of supporting two objects on a single gate to avoid common inconveniences that you see in other scripts. Such as one gate being open whilst the other is closed, or having a garage gate next to a door gate, causing both to open when you really only want one to open.



I have not shown the basic stuff in the video such as setting a password, or setting an owner for the gate. But it works pretty similarly to any other gate system. This video is just a showcase of what I've created and how simple to use it is. I hope you enjoy and feedback/suggestions are very welcome as I'd love to improve this system even further.






postscriptum: you may notice 'textdraws'?in this video that overlap. some of them are from my mods and others are from the gamemode, that's why they appear to be bugged, when they are in fact not.


  [Showcase/Mapp] Chinatown
Posted by: Apex - 2019-06-22, 10:52 PM - Forum: Videos and Screenshots - Replies (1)

Im Concorde#0687 on discord???

[Image: sa-mp-141.png]
[Image: sa-mp-142.png]
[Image: sa-mp-143.png]
[Image: sa-mp-144.png]
[Image: sa-mp-145.png]
[Image: sa-mp-146.png]
[Image: sa-mp-147.png]
[Image: sa-mp-148.png]


Question *Ce asteptari aveti de la open.mp
Posted by: BoNNe - 2019-06-22, 06:47 PM - Forum: Romanian/Rom?na - Replies (7)

Personal, ma multumesc cu un player control mai avansat si, de ce nu, NPC-uri (ex: single player).