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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,261
» Latest member: MikeNGRP
» Forum threads: 2,379
» Forum posts: 12,294

Full Statistics

Online Users
There are currently 286 online users.
» 0 Member(s) | 283 Guest(s)
Google, Bing, DuckDuckGo

Latest Threads
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
8 hours ago
» Replies: 1
» Views: 3,330
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 77
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 29
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,656
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 46
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 32
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 94
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 65
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,213
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 74

 
Wink Help me
Posted by: dwp12345 - 2020-11-22, 03:29 AM - Forum: Pawn Scripting - Replies (1)

Any thread to learn mysql ?


  My suggestions list - [Updated 21/06/21]
Posted by: JR_Junior - 2020-11-22, 12:08 AM - Forum: Questions and Suggestions - Replies (11)

1 - BASIC NATIVE FUNCTIONS

I know that many of these functions that I am going to list may exist because someone has already created them on their own,?

but the fact is that most of them do not work accurately and not all of them have been shared. These are simple functions,?

which should be native and that I think that all server owners should have access to facilitate the work.



PHP Code:
GetServerIP();

GetServerPort(); 



PHP Code:
IsPlayerDesynced(playerid);

IsPlayerInWater(playerid);

IsPlayerUnderWater(playerid);

IsPlayerLying(playerid);

IsPlayerCrouched(playerid);

IsPlayerUpBuilding(playerid);

IsPlayerOnSurface(playerid); 

IsPlayerUnderGround(playerid); 

IsPlayerUnderVehicle(playerid); 

IsPlayerOnStreet(playerid);

IsPlayerMoving(playerid);

IsPlayerRunning(playerid);

IsPlayerWalking(playerid);

IsPlayerAiming(playerid);

IsPlayerShooting(playerid);

IsPlayerThrowingWeapon(playerid);

IsPlayerReloadingWeapon(playerid);

IsPlayerInAir(playerid);

IsPlayerParachuting(playerid);

IsPlayerFalling(playerid);

IsPlayerInFire(playerid);

IsPlayerBurning(playerid);



IsVehicleInWater(vehicleid);

IsVehicleInFire(vehicleid);

IsVehicleBurning(vehicleid);

IsVehicleOnSurface(vehicleid);

IsVehicleUnderGround(vehicleid);

IsVehicleInAir(vehicleid);

IsVehicleFalling(vehicleid);

IsVehicleUpBuilding(vehicleid);

IsVehicleOnStreet(vehicleid);

IsVehicleWheelsUp(vehicleid);

IsVehicleMovingForward(vehicleid);

IsVehicleMovingBackward(vehicleid); 



2 - PROGRESS BARS

- A system based on the game's original progress bars. Like the bars of life, armour, oxygen, etc.



PHP Code:
ProgressBar_Create(Float:xFloat:yFloat:widthFloat:heightPlayer:playerid);

ProgressBar_SetDirection(ProgressBar:ProgressBardirection);

ProgressBar_SetMaxValue(ProgressBar:ProgressBarFloat:max_value);

ProgressBar_SetColor(ProgressBar:ProgressBarcolor);

ProgressBar_SetBorderSize(ProgressBar:ProgressBarFloat:border_size);

ProgressBar_SetBorderColor(ProgressBar:ProgressBarborder_color);

ProgressBar_SetValue(ProgressBar:ProgressBarFloat:value);



ProgressBar_Show(ProgressBar:ProgressBarPlayer:playerid);

ProgressBar_Hide(ProgressBar:ProgressBarPlayer:playerid);

ProgressBar_Flash(ProgressBar:ProgressBarcolorPlayer:playerid);

ProgressBar_StopFlashing(ProgressBar:ProgressBarPlayer:playerid); 



3 - CUSTOM SOUNDS AND RADIUS

- A system that allows you to add customized sounds to a folder within scriptfiles.

- Be able to select the radius at which the sound should play, if a coordinate is defined.



PHP Code:
AddSound(sound_idfile_name[]);

Player_PlaySound(playeridsoundidFloat:xFloat:yFloat:zFloat:radius); 



4 - NEW AUDIO STREAM FEATURES

- Possibility of attaching an audio stream to a player / object / vehicle.

- To be able to pause / resume and control the volume.

- Determine the virtual world and the interior where the audio stream should play.

- Enable and disable audio stream messages in chat.

- If an audio stream is attached to a location or to a player, vehicle, or object, it should automatically play / update when a player approaches.



PHP Code:
Player_PlayAudioStream(playeridurlposXposYposZdistanceuseposvirtualworldinteriorattach_playerattach_vehicleattach_object);

Player_PauseAudioStream(playerid);

Player_ResumeAudioStream(playerid);

Player_SetAudioStreamVolume(playeridvolume);

Player_ToggleAudioStreamMessage(playeridtoggle);

IsAudioStreamPlayingForPlayer(playerid); 



5 - VEHICLE DAMAGE DETECTION

Detect damage caused by a vehicle or the damage that a vehicle has received.



PHP Code:
Vehicle_OnTakeDamage(vehicleid,?issuerid,?Float:amountweaponidvehiclepart);

Vehicle_OnGiveDamage(vehicleiddriverid,?damagedid,?Float:amount); 



6 - FIRE SYSTEM

A system for creating fire flames.



PHP Code:
Fire_Create(Fire:FireFloat:xFloat:yFloat:zFloat:sizevirtualworldinteriorPlayer:playerid);

Fire_Destroy(Fire:Fire); 



7 - PLAYER AND VEHICLE INVULNERABILITY

Prevents any kind of damage, even if your car is not invulnerable and explodes, you will not die.



PHP Code:
Player_SetInvulnerable(playeridtrue);

Vehicle_SetInvulnerable(vehicleidtrue); 



8 - ACTORS IMPROVMENTS AND NEW FEATURES

If we use SetActorInvulnerable the actor must not be pushed or moved, this is bad and we have to use a timer to reset the position.

My suggestion is to improve this or create ToggleActorCollision.



PHP Code:
Actor_SetChatBubble(actorid, ...);

Actor_Attach3DTextLabel(actorid, ...); 



9 - HIDDEN AND CUTSCENE SKINS

Add the cutscene skins and other skins present in the game as standard OpenMP skins, just like the samp, following the sequence of IDs 312,313, etc.



Here is the skins files: https://github.com/NicKv7/SkinsCutscenes

Original post: http://web-old.archive.org/web/201904230...?p=3958232



10 - NEW ANIMATION FUNCTIONS

PHP Code:
Player_OnAnimationChange(playeridold_indexold_animlib[], old_animname[], new_indexnew_animlib[], new_animname[])

Player_OnAnimationEnds(playeridindexanimlib[], animname[])

Player_GetAnimationSpeed(playerid);

Player_SetAnimationSpeed(playeridFloat:speed); 


  CHRISTMAS SCREENSHOTS
Posted by: Potassium - 2020-11-22, 12:06 AM - Forum: Videos and Screenshots - No Replies

Please post any Christmas-related SA screenshots below! We will use them on our social media pages :)


  0.3.DL - scripting/mapping help
Posted by: Nobody58 - 2020-11-21, 04:22 PM - Forum: Pawn Scripting - Replies (4)

Hello. I need help with editing custom map. What editor to use to move/edit custom objects/models around the map?


  Random screenshots thread
Posted by: Potassium - 2020-11-21, 02:06 PM - Forum: Videos and Screenshots - Replies (2)

Post your screenshots from in game, and we?ll regularly feature some on our Instagram page (and credit you of course!)



http://instagram.com/openmultiplayer


  Question about some bugs on SA-MP ...
Posted by: DaZzY - 2020-11-21, 10:17 AM - Forum: Questions and Suggestions - Replies (4)

Hello?



https://www.youtube.com/watch?v=oOJeyGBg13I



In this video we see a lot bugs of SA-MP ( maybe the author of video abused a little because he support more mta ... )



Can this kind of bugs be corrected on Open.MP ?


  SA-MP in world top 10 most played games!
Posted by: Potassium - 2020-11-21, 04:05 AM - Forum: General Discussions - Replies (10)

Did you know that SA-MP is one of the top 10 most played games IN THE WORLD according to the Steam player count stats?!



We currently have more players than Rust, and that's even missing a lot of our community from the count, such as the Chinese servers that don't have access to the Master List.



THIS is why we're dedicated to open.mp!



Info taken from http://open.mp/servers



[Image: EnURedJVkAAya9L?format=png&name=medium]


  Class System for my Server
Posted by: SilverStar - 2020-11-20, 04:35 PM - Forum: General Discussions - No Replies

I have developed the gangwar game mode, there are 2 role

- Police

- Gang

In the gang role, there are 4 teams, Grove, Ballas, Aztec, Vagos. And for now I am thinking of adding classes like Rank to these 2 roles and also the features of each class. Can anyone help me come up with class names for Role Gang and Police? along with its unique features from each of these classes??



Edit:?I am also thinking that the class name will be taken from the rank gang and police in real life, please give your ideas


  Anim while walking
Posted by: SilverStar - 2020-11-20, 04:28 PM - Forum: Questions and Suggestions - Replies (1)

is it possible to use pointing animation while walking and following camera direction in SAMP? like GTA V Roleplay


  PlayerTextDrawBoxColor is not work
Posted by: Zow - 2020-11-20, 11:28 AM - Forum: Pawn Scripting - No Replies

When I typed /show and then rCheck only switch me from 0 to 1 and done?
I want them to keep count until the end?
I know my code look stupid but I dont know how to do it in other way

Code:
CMD:show(playerid, params[])
{
? ? PlayerTextDrawShow(playerid, Brandom[playerid]);
? ? PlayerTextDrawShow(playerid, Lrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Mrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Rrandom[playerid]);
? ? Timer[playerid] = SetTimerEx("rCheck", 100, true, "dd", playerid, RCount[playerid]);
return 1;
}

CMD:hide(playerid, params[])
{
? ? PlayerTextDrawHide(playerid, Brandom[playerid]);
? ? PlayerTextDrawHide(playerid, Lrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Mrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Rrandom[playerid]);
? ? KillTimer(Timer[playerid]);
return 1;
}

Hide(playerid)
{
? ? PlayerTextDrawHide(playerid, Lrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Mrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Rrandom[playerid]);
? ? return 1;
}

Show(playerid)
{
? ? PlayerTextDrawShow(playerid, Lrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Mrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Rrandom[playerid]);
? ? return 1;
}

Frandom(playerid)
{
? ? PlayerTextDrawBoxColor(playerid, Lrandom[playerid], -16776961);
? ? PlayerTextDrawBoxColor(playerid, Mrandom[playerid], 115);
? ? PlayerTextDrawBoxColor(playerid, Rrandom[playerid], -16776961);
}

Srandom(playerid)
{
? ? PlayerTextDrawBoxColor(playerid, Lrandom[playerid], 115);
? ? PlayerTextDrawBoxColor(playerid, Mrandom[playerid], -16776961);
? ? PlayerTextDrawBoxColor(playerid, Rrandom[playerid], 115);
}

forward rCheck(playerid, count);
public rCheck(playerid, count)
{
? ? switch(count)
? ? {
? ? ? ? case 0:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 1:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 2:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 3:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 4:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 5:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 6:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 7:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 8:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 9:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 10:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 11:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 12:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 13:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 14:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? KillTimer(Timer[playerid]);
? ? ? ? }
? ? }
? ? RCount[playerid];
? ? return 1;
}