• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] My suggestions [Update: 2022-07-06]
#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
  Reply


Messages In This Thread
My suggestions [Update: 2022-07-06] - by Radical - 2022-07-02, 11:07 PM
RE: My suggestions [2022-07-03] - by iAmir - 2022-07-03, 02:10 AM

Forum Jump: