Re: Suggestions Thread -
Stepashka - 08.01.2013
Quote:
Originally Posted by klklt0
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
Re: Suggestions Thread -
DartakousLien - 08.01.2013
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[]);
Re: Suggestions Thread -
leong124 - 08.01.2013
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)
Re: Suggestions Thread -
White_116 - 08.01.2013
Quote:
Originally Posted by AirKite
Quote:
Originally Posted by White_116
[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.
Re: Suggestions Thread -
leong124 - 08.01.2013
Quote:
Originally Posted by White_116
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.
Re: Suggestions Thread -
GWMPT - 08.01.2013
Quote:
Originally Posted by Stepashka
|
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 :]
Re: Suggestions Thread -
CJ101 - 08.01.2013
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.
Re: Suggestions Thread -
Luis- - 08.01.2013
Something like;
Code:
native GetPlayerFPS(playerid)
Re : Re: Suggestions Thread -
Vukilore - 08.01.2013
Quote:
Originally Posted by -Luis
Something like;
Code:
native GetPlayerFPS(playerid)
|
Already exist...
Please increase Per-Player Textdraw's limits (like Global TextDraw) to 2048
Re: Suggestions Thread -
ReneG - 08.01.2013
You can make your own IsVehicleOccupied using an array, OnPlayerStateChange, and OnPlayerExitVehicle. No loops required.
Re: Suggestions Thread -
Bug. - 08.01.2013
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);
Re: Suggestions Thread -
Luis- - 08.01.2013
Quote:
Originally Posted by Bug.
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?
Re: Suggestions Thread -
nickstar - 09.01.2013
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
AW: Suggestions Thread -
[DFE]Ike - 09.01.2013
CreateExplosion with interiors and virtual worlds would be nice...
Код:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius, interior, virtualworld)
Re: Suggestions Thread -
MickeyB - 09.01.2013
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.
Re: Suggestions Thread -
Jakku - 09.01.2013
Quote:
Originally Posted by Kar
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
My little suggestions are:
Code:
GetPlayerCPU(playerid);
GetPlayerGPU(playerid);
GetPlayerRAM(playerid, USED/FREE/TOTAL);
|
Quote:
Originally Posted by costel_nistor96
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
Something like;
Code:
native GetPlayerFPS(playerid)
|
Quote:
Originally Posted by HuSs3n
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
AW: Suggestions Thread -
Littl3j0hNy - 10.01.2013
pawn Код:
native EnableSpeedBlurForPlayer(playerid, bool:blur);
native SetWaterHeight(Float: z);
native SetCheckpointColor(checkpointid, color);
native EnableExtraEffectForPlayer(playerid, bool:effect);
native AllowCleoMods(bool:cleo);
Re: Suggestions Thread -
FufLa - 10.01.2013
Sharks with lasers attached to their head.
Re: Suggestions Thread -
Jay_ - 10.01.2013
There are shark / laser objects, and there's a native:
AttachObjectToObject
Re: AW: Suggestions Thread -
Dredd - 10.01.2013
Quote:
Originally Posted by Littl3j0hNy
pawn Код:
native SetWaterHeight(Float: z); native SetCheckpointColor(checkpointid, color);
|
Would be
great!