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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,242
» Latest member: nsewapi
» Forum threads: 2,375
» Forum posts: 12,284

Full Statistics

Online Users
There are currently 337 online users.
» 1 Member(s) | 334 Guest(s)
Google, Bing, nsewapi

Latest Threads
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
1 hour ago
» Replies: 0
» Views: 3
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
Yesterday, 08:35 AM
» Replies: 0
» Views: 33
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,165
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 52
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 432
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 569
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,073
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 65
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 82
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 94

 
  goto label
Posted by: claudespeed - 2022-07-29, 11:36 PM - Forum: Pawn Scripting - No Replies

//SOLVED


Lightbulb Fusez's Map Editor (Version 3) [Dynamic Categories] [Improved] [Best of Version 1&2 C
Posted by: fusez - 2022-07-19, 07:30 PM - Forum: Filterscripts - Replies (2)

[Image: GXbn2ba.png]

Version 3?GitHub?Page


Question [MySQL] Problema con registro de datos
Posted by: GARS - 2022-07-19, 05:47 PM - Forum: Programaci?n - Replies (2)

Hola, tengo un problema con MySQL al registrar nuevos datos, mi servidor era SQLite y lo pase a MySQL pero al registrar un nuevo dato (registrar cuenta) en la base de datos esta no me figura/registra la el ID de forma ascendiente, me explico, en la tabla solo me registra como ID 0, as?:



[Image: 2UtuvbC.png]



Y cuando quiero volver a registrar otros datos(cuenta) no registra.



Ac? como est? la DB:





Code:
CREATE TABLE `cuenta` (

? `ID` int(11) NOT NULL,

? `IP` varchar(16) DEFAULT NULL,

? `NAME` varchar(24) DEFAULT NULL,

? `EMAIL` varchar(32) DEFAULT NULL,

? `PASS` varchar(65) DEFAULT NULL,

? `CONNECTED` int(11) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8;



ALTER TABLE `cuenta`



? ADD PRIMARY KEY (`ID`);



Y en la gamemode as?



Code:
RegisterNP(playerid)

{

new DB_Query[500];

format(DB_Query, sizeof DB_Query,

"\

INSERT INTO `CUENTA`\

(\

`IP`, `NAME`, `EMAIL`, `PASS`, `CONNECTED`\

)\

VALUES\

(\

'%q', '%q', '%q', '%q', '1'\

);\

", INFO_AC[playerid][iac_IP], INFO_AC[playerid][iac_NAME], INFO_AC[playerid][iac_EMAIL], INFO_AC[playerid][iac_PASS]);

mysql_tquery(DATABASE, DB_Query, "LoadRegisterNP", "i", playerid);

return 1;

}


  My suggestions [Update: 2022-07-06]
Posted by: Radical - 2022-07-02, 11:07 PM - Forum: Questions and Suggestions - Replies (1)

Objects & PlayerObjects:

PHP Code:
SetObjectSize(objectidFloatfXFloatfYFloatfZ);

SetPlayerObjectSize(objectidFloatfXFloatfYFloatfZ);

GetObjectSize(objectid, &FloatfX, &FloatfY, &FloatfZ);

GetPlayerObjectSize(objectid, &FloatfX, &FloatfY, &FloatfZ); 



Textdraws & PlayerTextDraws:

PHP Code:
TextDrawFont(Text:textfontface[]); //Able to use any font in TextDraw

PlayerTextDrawFont(playeridPlayerText:text,?fontface[]);



TextDrawRotateText(Text:textFloat:rotate);

PlayerTextDrawRotateText(playeridPlayerText:textFloat:rotate);



Make it possible to add a new txd and player download it when connect to the server. [../omp server/models/txd]

(
Like samp 0.3.DL download skin character files from server) (https://ibb.co/R2qgXLJ)



Add color gradient textdraws



Keys:

PHP Code:
Supporting all?Keys.

if (
newkeys == 0x41// 'A' key 



File functions:

PHP Code:
Reading a directory in scriptfiles.

readdir(...); 



Players:

PHP Code:
ReconnectPlayer(playeriddelay=0);

TogglePlayerHUD(playeridtoggle); //Show/Hide game hud

TogglePlayerChat(playeridtoggle); //Show/Hide chats

ForcePlayerTakeScreenShot(playerid);

BurnPlayer(playerid);

TogglePlayerInvulnerable(playeridtoggle);

ReloadPlayerArmedWeapon(playerid);

RemoveWeaponFromPlayer(playeridweaponid);



PlayerDeathListShow(playerid);

PlayerDeathListHide(playerid);

PlayerDeathListPos(playeridFloat:XFloat:Y);



SetPlayerFpsLimit(playeridamount); // /fpslimit (30 to 90)

GetPlayerFpsLimit(playerid);

SetPlayerFontSize(playeridsize); //Chat font size /fontsize (-3 to 5)

GetPlayerFontSize(playerid);

SetPlayerPageSize(playeridsize); // /pagesize (10 to 20)

GetPlayerPageSize(playerid);

TogglePlayerHeadMove(playeridtoggle); // /headmove

TogglePlayerDebugLabels(playeridtoggle); // /dl

TogglePlayerTimestamp(playeridtoggle); // /timestamp

TogglePlayerAudioMsg(playeridtoggle); // /audiomsg

QuitPlayer(playerid); // /quit



TogglePlayerFirstPerson(playeridtoggle);

TogglePlayerIronFist(playeridtoggle);

TogglePlayerInfiniteRun(playeridtoggle);

SetPlayerMapMarkPos(playerid,?Float:xFloat:y,?Float:z); //Red mark on map

GetPlayerMapMarkPos(playerid,?&Float:x,?&Float:y,?&Float:z);

GetPlayerBreathBar(playerid, &Float:amount); //Blue bar that appears on breathing underwater (idk what to name this func)

TogglePlayerSeaWaves(playeridtoggle); //Toggle 0 = The sea does not wave and the water?are smooth 



Damage:

PHP Code:
OnPlayerTakeDamage(...);

OnPlayerGiveDamage(...);

- If 
returns 0prevent player from health loss.



Add new weaponid supportsWEAPON_HYDRAWEAPON_HUNTERWEAPON_SEASPAROWWEAPON_BARRONWEAPON_RUSTLER.



-?
It would be nice to add all weapon-config?functions like SetWeaponDamage() to omp.



- If 
the player jumps from a height and dies , return last player who damage him. (On OnPlayerDeath



Player HUD:

PHP Code:
Change game hud?position:

HUD_HealthPos(playeridFloat:XFloat:Y);

HUD_ArmourPos(playeridFloat:XFloat:Y);

HUD_BreathBarPos(playeridFloat:XFloat:Y);

HUD_WantedPos(playeridFloat:XFloat:Y);

HUD_MoneyPos(playeridFloat:XFloat:Y);

HUD_TimePos(playeridFloat:XFloat:Y);

HUD_WeaponPos(playeridFloat:XFloat:Y);

HUD_MiniMapPos(playerid,?Float:XFloat:Y);



Show/Hide game hud:

HUD_HealthToggle(playeridtoggle);

HUD_ArmourToggle(playeridtoggle);

HUD_BreathBarToggle(playeridtoggle);

HUD_WantedToggle(playeridtoggle);

HUD_MoneyToggle(playeridtoggle);

HUD_TimeToggle(playeridtoggle);

HUD_WeaponToggle(playeridtoggle);

HUD_MiniMapToggle(playeridtoggle); 



Audio Stream:

PHP Code:
PlayAudioStreamForPlayerEx(playeridurl[], play_from_second 0,?Float:posX 0.0Float:posY 0.0Float:posZ 0.0Float:distance 50.0usepos 0); //Play audio from a specific second

PauseAudioStreamForPlayer(playerid);

ResumeAudioStreamForPlayer(playerid);

UpdateAudioStreamPosForPlayer(playeridFloat:posX 0.0,?Float:posY?= 0.0Float:posZ 0.0); //If positions is 0.0?consider to player pos

GetPlayerAudioStreamUrl(playerid, &dest[], len sizeof dest);

GetPlayerAudioStreamCurrentTime(playerid);?//Return in seconds

GetPlayerAudioStreamPos(playerid, &Float:posX, &Float:posY, &Float:posZ);

GetPlayerAudioStreamDistance(playerid, &Float:distance);

IsPlayerAudioStreamPaused(playerid);

GetAudioStreamUrlLength(url[]);?//Return in seconds 



Vehicles:

PHP Code:
ToggleVehicleInvulnerable(vehicleidtoggle);

SetVehicleSpeed(vehicleidFloat:speed);

Float:GetVehicleSpeed(vehicleid);



ToggleVehicleShoot(vehicleidtoggle); //Disable Hydra/Hunter/Rustler/SeaSparrow shooting

ToggleVehicleLightBars(vehicleidtoggle); //Police vehicles or Ambulance vehicles?

ToggleVehicleBlowFuelTank(vehicleidtoggle); //In gta sa offline you able to blow vehicle?by shooting at fuel tank.

FlipVehicle(vehicleid); //new Float:angle;?GetVehicleZAngle(vehicleid, angle),?SetVehicleZAngle(vehicleid, angle); 



Actors:

PHP Code:
SetActorArmedWeapon(actoridweaponid);

GetActorArmedWeapon(actorid); 



Validation:
PHP Code:
IsValidWeaponID(weaponid);

IsValidVehicleModel(modelid);

IsPositionInWater(FloatxFloatyFloatz);

IsVehicleOverturned(vehicleid);

IsPlayerAFK(playerid); //or IsPlayerPaused(playerid);

IsPlayerWalking(playerid); //W  ALT

IsPlayerRunning(playerid); //W  Space

IsPlayerStanding(playerid);

IsPlayerInvulnerable(playerid);

IsVehicleInvulnerable(vehicleid); 



Strings:

PHP Code:
IsNumeric(string[]);

IsDigit(string[]);

IsSpace(string[]);

IsLower(string[]);

IsUpper(string[]);

StrReplace(oldvalue[], newvalue[], &dest[], len sizeof dest);

StrCpy(dest[], source[]);

StrCapitalize(string[], &dest[], len sizeof dest); //First character to upper case 



Server:

PHP Code:
GetServerIP(); //Server?public IP address

GetServerPing(); 



Socket:

PHP Code:
Add TCP UDP connections and functions



Fixes:

PHP Code:
RemoveBuildingForPlayer(...); // It crashes game if number of removes is above 1000



Enable tear gas coughing effect/animAlso return amount of damage in OnPlayerTakeDamage.



When a vehicle dies then respawned the ID was changeID should not change.



Head bleeding with headshotanimation deleted from sa-mp. Return it.



OnPlayerWeaponShoot(...); //Doesn't work in lagcompmode 0



When player press TAB key the server textdraws are hide



Telegram: t.me/adib_yg

Discord: Adib#5980


  Weapon-config.inc no damage
Posted by: yukie - 2022-06-20, 03:17 PM - Forum: Pawn Scripting - No Replies

Is there any other way to fix this on weapon-config, because there's no damage on my server


Information [Work in progress] TextDraw Editor (online)
Posted by: Leonardo - 2022-06-12, 09:00 AM - Forum: Releases - Replies (3)

TextDraw Editor



A TextDraw Editor built in Vanilla JS



Work in progress!! For more information, visit the github repository.



Preview



[Image: 2fQfySy.jpg]



Source code



https://github.com/Leonardo541/TextDrawEditor



Demo at



https://leonardo541.github.io/TextDrawEditor/


  How to get rid and replace the SERVER: Unknown command message?
Posted by: Haitam - 2022-06-07, 07:16 PM - Forum: Programming - Replies (1)

Hello, I am trying to learn PAWN scripting, how can I get rid of the SERVER: Unknown command message? And please tell me a good way to learn basics and start scripting! Thanks.


  So whats up now is the beta is out?
Posted by: NoxxeR - 2022-06-06, 06:54 PM - Forum: Chat - No Replies

Whats up with the new Open Multiplayer client? Will it be released to the public? The server beta has been released.



Everybody will enjoy life if you guys release the Client, some of us havent played in a long time GTA SA, we need a good client soon.


  GTA Maps in open.mp?
Posted by: Xyranaut - 2022-06-04, 05:41 AM - Forum: Questions and Suggestions - Replies (1)

According to the latest SA:MP update, access to the GTA VC Map has been granted within SA:MP. I recently came across a video featuring the merging of maps from GTA 3, VC, SA, 4 and 5 into GTA SA. In the video, the creator provided links for this merged map setup.

I'm contemplating the possibility of integrating these map files seamlessly with the 'installation of open.mp'. This way, anyone using open.mp would automatically gain access to these maps, eliminating the need for manual installation by individuals.

It would be quite fascinating to envision the incorporation of all these maps, effectively utilizing them in a multiplayer environment by simply adding the map mod extension alongside open.mp.


  AttachDynamicObjectToObject
Posted by: Davee52 - 2022-05-30, 03:24 PM - Forum: Pawn Scripting - Replies (1)

Hi. I tried to use AttachDynamicObjectToObject, but failed, the object doesn't attach. Any ideas?

Code:
new id,p;

stock CreateATM(Float:PX,Float:PY,Float:PZ,Float:PRX, Float:PRY, Float:PRZ){

id= CreateDynamicObject(19526, PX,PY,PZ, PRX,PRY,PRZ, -1, -1, -1, 10.00, 10.00);

SetDynamicObjectMaterial(id, 0, 2942, "kmb_atmx", "kmb_atm", 0x00000000);

SetDynamicObjectMaterial(id, 2, 14708, "labig1int2", "ab_mottleGrey", 0x00000000);

SetDynamicObjectMaterial(id, 3, 2942, "kmb_atmx", "kmb_atm_sign", 0x00000000);

SetDynamicObjectMaterial(id, 5, 1252, "barrelexpos", "atm", 0x00000000);

p = CreateDynamicObject(19483, PX.2123, PY.12836, PZ.1343, 0.000000, -48.300056, -90.000053, -1, -1, -1, 10.00, 10.00);

SetDynamicObjectMaterialText(p, 0, "{ffffff}CASH", 130, "Ariel", 20, 1, 0x00000000, 0x00000000, 1);

AttachDynamicObjectToObject(p,id,0.2123,0.12836,1.1343,0.000000, -48.300056, -90.000053,1);

}



P.S: It does work correctly when I convert it to default Create Object and AttachObjectToObject.. But i'm using streamer plugin