Suggestions Thread
#41

Quote:
Originally Posted by klklt0
View Post
some interesting functions
pawn Code:
native GetTextDrawAlpha(text: id); // it shall return a value from 0.0 to 1.0
native SetTextDrawAlpha(text:id, Float: alpha); // it shall set the textdraw alpha.
native GetPlayerTextDrawAlpha(playertext: id); // it shall return a value from 0.0 to 1.0
native SetPlayerTextDrawAlpha(playertext:id, Float: alpha); // it shall set the textdraw alpha.
and was well, the possiblitie to work with client side, which would give us the possiblitie of doing alot of gui's, menus, which could maximize our game play over a sa-mp server.
TextDrawColor
PlayerTextDrawColor
TextDrawColor(Example, 0x000000ff);
PlayerTextDrawColor(playerid, pTextdraw[playerid], 0xff0000ff);
red - alpha channel
Reply
#42

add image param to attach object like global object

like this
pawn Code:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0, txdname[], texturename[]);
Reply
#43

pawn Code:
MoveTextdraw(Text:text, Float:x, Float:y, Float:speed);//Move to the specified position
(Changing texture for player attached objects, don't forget to support for changing multiple textures)
AttachPlayerObjectToPlayerObject(playerid, objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
//Really useful for object streamers to attach unlimited number of objects to a single object, so that moving the whole set of objects is easier

GetPlayerScreenResolution(playerid, width, height);
IsPlayerUsesWidescreenMode(playerid);//Return GTA:SA'
s settings
//Useful for creating automatic widescreen mode for the UI/textdraws of the server.

public OnAudioStreamPlay(playerid, handleid);
public OnAudioStreamStop(playerid, handleid);
//Same as audio plugin by Incognito. It means PlayAudioStreamForPlayer should also return a handle ID.

(Larger font size for DIALOG_STYLE_MSGBOX, DIALOG_STYLE_INPUT and DIALOG_STYLE_PASSWORD on smaller screen resolution like 1024x768, same size as DIALOG_STYLE_LIST is good)
(Dynamically adjust the dialog size for lists and the caption)
(Change the font of the whole game into others, so that "I" and "l" can be easily recognised)
Reply
#44

Quote:
Originally Posted by AirKite
View Post
Quote:
Originally Posted by White_116
View Post
[php]RemovePlayerWeapon(playerid, slot);// similar ResetPlayerWeapons
GivePlayerWeapon with ammo 0
This only works for: 22, 23, 24, 33, 34. and the weapon will not be removed.
Reply
#45

Quote:
Originally Posted by White_116
View Post
This only works for: 22, 23, 24, 33, 34. and the weapon will not be removed.
Giving negative amount of bullets works. I've scripted my own weapon-giving system.
Such a native function is quite useful though.
Reply
#46

Quote:
Originally Posted by Stepashka
View Post
TextDrawColor
PlayerTextDrawColor
TextDrawColor(Example, 0x000000ff);
PlayerTextDrawColor(playerid, pTextdraw[playerid], 0xff0000ff);
red - alpha channel
If you have Box color, shadow color, and others, it will make the textdraw himself (weird) to do the alpha.
That's what i mean :]
Reply
#47

Code:
DisableGambling() - self explanitory.
New type of dialog boxes - drop down
What about more keycodes? Last time i checked, sa-mp could only grab a few. Maybe like KEY_F1 - F12, etc.

Ability to change the actual message above the players list in tab.. (SetServerScoreBoardMessage())

i'm sure ill think of more.
Reply
#48

Something like;
Code:
native GetPlayerFPS(playerid)
Reply
#49

Quote:
Originally Posted by -Luis
View Post
Something like;
Code:
native GetPlayerFPS(playerid)
Already exist...

Please increase Per-Player Textdraw's limits (like Global TextDraw) to 2048
Reply
#50

You can make your own IsVehicleOccupied using an array, OnPlayerStateChange, and OnPlayerExitVehicle. No loops required.
Reply
#51

Code suggest to make the GTA SA HUD And Radar OFF.

Code:
RemovePlayerHud(playerid); // Remove The Money, HP, Weapon etc.
ShowPlayerHud(playerid);

RemovePlayerRadar(playerid); //remove the radar and all markers on the minimap
ShowPlayerRadar(playerid);
Reply
#52

Quote:
Originally Posted by Bug.
View Post
Code suggest to make the GTA SA HUD And Radar OFF.

Code:
RemovePlayerHud(playerid); // Remove The Money, HP, Weapon etc.
ShowPlayerHud(playerid);

RemovePlayerRadar(playerid); //remove the radar and all markers on the minimap
ShowPlayerRadar(playerid);
Please stop suggesting to remove the HUD, Kalcor already said he isn't going to code ways to remove it. Couldn't you just use F7?
Reply
#53

Quote:
Originally Posted by Top Fuel
Посмотреть сообщение
pawn Код:
native AttachVehicleToVehicle(vehicleid, vehicleid2, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
I like that one i have one also

PlayAudioStreamForVehicle (it would stream a sound out side of the vehicle anyone near the vehicle could hear it
Код:
PlayAudioStreamForVehicle(vehicleid, Float:distance = 50.0)
or something near that
i know you can do it already but this would be easier to do
Also maybe if you get dysynced to be able to not leave samp program and just restart it from the game with a client side command.But idk if it could work
Reply
#54

CreateExplosion with interiors and virtual worlds would be nice...
Код:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius, interior, virtualworld)
Reply
#55

Ideally, however possibly unrealistically, these:
  • The ability to set a vehicles color in a RGB or hex format instead of working with only the current IDs.
  • The ability to detect the location of a player's cursor on the screen.
  • The ability to adjust weapon properties for players, for example the amount of accuracy (reticle bloom/spread) of the weapon, range of the weapon, walking speed with weapon and the maximum ammo per clip (the last one in particular would be great).
  • The ability to adjust vehicular handling for players.
I think the weapon thing could be really cool, not sure what the possibilities of it are although I'm sure there must be some kind of way to adjust those things as they change in GTA:SA as you progress through the weapon skill tiers.

Thanks, Mick.
Reply
#56

Quote:
Originally Posted by Kar
View Post
pawn Code:
forward OnVehicleCollide(vehicleid, playerid, collided_vehicleid, collided_objectid, collided_playerid, Float:damage, Float:damage_done);
Add protection against CLEO Hacks
Quote:
Originally Posted by BlackBank3
View Post
My little suggestions are:
Code:
GetPlayerCPU(playerid);
GetPlayerGPU(playerid);
GetPlayerRAM(playerid, USED/FREE/TOTAL);
Quote:
Originally Posted by costel_nistor96
View Post
I got it. But I have a question, many users requested these:
pawn Code:
native EnablePlayerGhostMode( playerid, bool:toggle ); // it has been suggested with other names too
native SetPlayerCheckpointColor( playerid, color ); // hex
native SetPlayerInfiniteRun( playerid, bool:toggle ); // if true he can run without getting tired, else, like how it is now - also suggested as SetPlayerStamina
Quote:
Originally Posted by -Luis
View Post
Something like;
Code:
native GetPlayerFPS(playerid)
Quote:
Originally Posted by HuSs3n
View Post
1- fixing the bugs that occur after server restart (like weapons sounds , deathbug , ban bug)
2- fix Kick(); onplayerconnect
That's all I found necessary from the existing suggestions. Also, it would be awesome to see less players complaining about getting desynced (nothing responding)

Good luck with coding
Reply
#57

pawn Код:
native EnableSpeedBlurForPlayer(playerid, bool:blur);
native SetWaterHeight(Float: z);
native SetCheckpointColor(checkpointid, color);
native EnableExtraEffectForPlayer(playerid, bool:effect);
native AllowCleoMods(bool:cleo);
Reply
#58

Sharks with lasers attached to their head.
Reply
#59

There are shark / laser objects, and there's a native: AttachObjectToObject
Reply
#60

Quote:
Originally Posted by Littl3j0hNy
Посмотреть сообщение
pawn Код:
native SetWaterHeight(Float: z);
native SetCheckpointColor(checkpointid, color);
Would be great!
Reply


Forum Jump:


Users browsing this thread: 10 Guest(s)