• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] My suggestions list - [Updated 21/06/21]
#1
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); 
  Reply


Messages In This Thread
My suggestions list - [Updated 21/06/21] - by JR_Junior - 2020-11-22, 12:08 AM

Forum Jump: