SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   General (https://forum.sa-mp.com/forumdisplay.php?f=13)
-   -   Suggestions For Future Sa:MP Versions. (https://forum.sa-mp.com/showthread.php?t=102997)

[03]Garsino 18/10/2009 09:02 AM

Suggestions For Future Sa:MP Versions.
 
Suggestions for functions

pawn Code:
native Attach3DTextLabelToObject(Text3D:id, objectid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
native TextDrawFadeInOut(Text:text, fade, time);
native TogglePlayerInteriorEnterExits(playerid, entrance, bool:toggle); // 'entrance' would be something like ENTRANCE_AMMU, ENTRANCE_PIZZA, etc.
native ToggleClientCommand(playerid, command[], bool:toggle); // Toggle the use of a client command, like disabling /save (some people use it to ripoff other servers). Should not work for /quit or /q
native SetPlayerWayPoint(playerid, Float:x, Float:y, Float:z); // Set the waypoint for a player with GTA SA nodes
native GetVehicelParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective, &feature) // Add 'feature' parameter (like the one on the packer, andromada, etc.)
native SetVehicelParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective, feature); // Add 'feature' parameter (like the one on the packer, andromada, etc.)
native ToggleVehicleBlip(vehicleid, bool:toggle); // Toggle grey blip on radar for a vehicle
native TogglePlayerTearGasEffect(playerid, bool:toggle);
native Set3DTextSize(Text3D:id, Float:size);
native ShowNameTags(enabled, mode); // Modes: 0 = off, 1 = names, 2 = health/armour, 3 = all
native GetLOS(Float:x, Float:y, Float:z, Float:x2, Float:y2, Float:z2); // Returns the line-of-sight distance between 2 points.
native SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size, color); // Add color parameter
native SetPlayerRaceCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size, color); // Add color parameter
native SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime, testLOS); // Add LOS parameter
native WalkToPos(Float:x, Float:y, Float:z, mode); // Make the NPC walk to a point. The modes are: 0 = walking, 1 = jogging, 2 = sprinting
native CreatePlayerPickup(playerid, model, type, Float:X, Float:Y, Float:Z, Virtualworld)
native ToggleVehicleCollision(vehicleid, bool:toggle);
native ToggleObjectCollision(objectid, bool:toggle);
native FadePlayerCamera(playerid, Float:speed);
native SetWaterLevel(Float:height);
native SetWaveHeight(Float:height);
native GetPlayerCursorPos(playerid, , &Float:x, &Float:y);
native GetMouseClickPos(playerid, &Float:x, &Float:y);
native TogglePlayerMinimap(playerid, bool:toggle);
native TogglePlayerChat(playerid, bool:toggle);
native SetPlayerCameraFocusVehicle/Player (camera follows said player/vehicle)
native MovePlayerCamera(playerid, Float:x, Float:y, Float:z);
native SetVehicleHandling(?);
native PutPlayerInCrane(playerid, craneid);
native TogglePlayerSPCheat(playerid, cheatname[], bool:toggle);
native GetTrainDirection(vehicleid); // Returns true if the train is driving clockwise on the train track, false if it is going counterclockwise.
native SetTrainDirection(vehicleid, bool:clockwise);
native GetTrainSpeed(vehicleid, &Float:speed);
native SetTrainSpeed(vehicleid, Float:speed);
native UsePlayerCopShootAnim();
native SetPlayerGravity(playerid, Float:gravity);
native SetVehicleGravity(vehicleid, Float:gravity);
native IsPlayerUsingJoypad(playerid);
native TogglePlayerScoreBoard(playerid, bool:toggle);
native IsPlayerChatShown(playerid); // Returns 1 if chat is shown, returns 0 if otherwis
native SetScoreHeader(header[]); // or something similar - changes the 'score' header to header[]
native GetPlayerNoise(playerid, &Float:noise);  // just like in the burgulary missions
native ToggleReturnToClassSelection or something similar to disable the effect of F4
native SetPlayerID(playerid, id); // Sets the ID of a player. Returns 1 if change was successfull, returns 0 if it were unable to complete the request (ID bigger than MAX_PLAYERS or invalid ID - below 0), returns -1 if it were unable to change the ID because of it already being used by another player/npc.
native GetPlayerLungCapacity(playerid, &Float:Capacity);
native SetPlayerLungCapacity(playerid, Float:Capacity);
native SetPlayerParamsForPlayer(playerid, forplayerid, objective, color); // basically making objectives in selected color to show above players like in SP
native SetVehicleParamsForPlayer(vehicleid, playerid, objective, color, doorslocked); // being able to choose color of the objective
native TogglePlayerHUD(playerid, hudid, bool:toggle); // 0 - Radar, 1 - Money, 2 - HealthBar, etc.
native TogglePlayerPillEffect(playerid, bool:toggle); // Pretty self explanatory, toggles the slow motion effect caused by the pill pickup.
native CreateFaced3DTextLabel(text[], color, Float:x, Float:y, Float:z, Float:angle, Float:drawdistance, virtualworld, testLOS);
native TextDrawMove(Text:text, Float:x, Float:y, Float:speed);
native ToggleOcuppiedVehicleDamage(bool:toggle);
native ToggleWorldSun(bool:toggle);
native AddScoreboardColumn(name[], position) // Position is the position of the column (like before player id column, after player id column, etc).
native RemoveScoreboardColumn(name[]);
native SetScoreboardColumnValue(playerid, name[], value);
native SendDeathMessageForPlayer(playerid, killer, victim, reason);
native AttachVehicleToObject(vehicleid, objectid);
native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], {Float,_}:...); // Change button1[] and button2[] to allow for 1 or more buttons
native TogglePlayerMouseCursor(playerid, bool:toggle);
native TogglePlayerControllable(playerid, mode) // modes: 0 - controllable 1 - cant move, but can move camera 2 - completely uncontrollable
native SetPlayerMaxHealth(playerid, Float:health); // If health is above 100, it will increase the healthbar
native GetPlayerMaxHealth(playerid, &Float:health);
native TogglePlayerSpeedBlur(playerid, bool:toggle);
native ToggleVehicleDamage(vehicleid, bool:toggle); // Works on vacant vehicles too (vacant vehicles set to invincible by default).
native ToggleCombineHarvesterDeath(bool:toggle);
native TogglePlayerHead(playerid, bool:toggle);
native GetPlayerPageSize(playerid);
Suggestions for callbacks

pawn Code:
forward OnObjectDamage(objectid, Float:damage, destroyed);
forward OnPlayerEnterVehicle(playerid, vehicleid, seatid); // Add seatid parameter
forward OnPlayerClickPlayer(playerid, clickedplayerid, source); // Add sources: CLICK_SOURCE_CHAT and CLICK_SOURCE_NAMETAG
forward OnPlayerVend(playerid, oldmoney, newmoney, machinetype);
forward OnPlayerCasinoPlay(playerid, oldmoney, newmoney, casinoid, machinetype); // Machine type is like vending machine, blackjack, etc. casinoid is the casino (4 dragons, casigulas, redsands)
forward OnPlayerRecieveStuntBonus(playerid, amount);
forward OnPlayerDeath(playerid, killerid, reason, bodypart); // Add bodypart parameter
forward OnPlayerMouseClick(playerid, press, buttonid); // Press would be 1 if the player is pressing, 0 if releasing. buttonid would be LMB, RMB, MMB, etc.
forward OnPlayerShoot(playerid, weaponid, Float:x, Float:y, Float:z);
forward OnVehicleDeath(vehicleid, reason); // Reason would be fire, water, explosion, etc.
forward OnEnterExitModShop(playerid, enterexit, interiorid); // returning 0 here will prevent the player from entering
Suggestions for gameplay tuning

Code:

Remove all default sounds from interiors (casino music, ammunation, saint marks bistro, shamal interior, welcome pump diner interior, strip clubs, etc)
Sync flames
Vehicle on vehicle surfing (for example ability to transport cars on the packer)
The ability to right click on a server in the internet/hosted list to add it to your favourites
Search for hostname in the server browser
Display a message if the password is incorrect on the client, instead of ingame.
Synced back doors on 4door cars
Synced paintjobs and vehicle colors
Synced furniture in burgulary houses
fix drive-by for passenger - the player can keep his head down and tuck in pressing "H"
Send the 'Connected to servername' message BEFORE OnPlayerConnect
Ability to highlight text in chat like in the type-box (and copy etc.)
Log opcodes to a file
Make TAB show the scoreboard, and hide when it is released

Suggestions for the server controlling

Code:

RCON command (re/un)loadplugin [pluginname]
Other suggestions

Code:

GVars (Global Vars) - possibly put the plugin by Incognito "into" SA:MP
Control over dialog design
Functions to attach vehicles to players and vice-versa
Functions to create and control the design of buttons
playerid parameter is UsePlayerPedAnims
Detection for all keys
Client-sided timers
Rounded textdraw corners (toggle)
A way to add messages to the 'breif' section of a player's pause menu
Automatic directory creation in fwrite if the directory doesn't exist
-1 in the 'world' parameter of 3D labels
//----------------------------------------------------
New dialog types:

Tickbox dialog type
Radio button dialog type
TAB dialog type (like a button that's either push in or out, and stays like that)
//----------------------------------------------------
New spectate modes
  • SPECTATE_MODE_CINEMATIC (spec with cinematic view)

  • SPECTATE_MODE_TEXTDRAW (hide textdraws)

  • SPECTATE_MODE_RADAR (show radar)

//----------------------------------------------------
A function to hide the class selection GUI
Enable pool tables (or a function to toggle it) (OnPlayerPlayPool - OnPlayerPoolBallHit)
A 'freeze' parameter in SetPlayerCameraPos that determins whether a player can move their camera after
A function to let players use the minigun like in the RC baron mission with zero in singleplayer
A function to disable auto-aim (weapons)
Enable/Disable Spawnbuttons
The ability to attach players to vehicles
//--------------------------------------------------------------------------------
Make colour embedding work in dialog buttons
"\a<1-3>" --Sets the alignment for the following text in a dialog (1=left alignment, 2=center, 3=right alignment)
"\p<0-1>" --Sets proportional characters for even spacing (0=disable, 1=enable)
"\d" --The following texts won't be selectable if using DIALOG_STYLE_LIST
"\e" --The following texts will be selectable
"\i<0-1>" --Italics (0=disable, 1=enable)
"\b<0-1>" --Bold (0=disable, 1=enable)
"\s<1-40>" --Letter size
"\u<0-1>" --Under lining (0=disable, 1=enable)


Rainmaker 18/10/2009 09:54 AM

Re: Suggestions For Future Sa:MP Versions.
 
Save values /pagesize and /fpslimit or any other upcoming similar values in special file, or put it somewhere in userdata.
(typing these commands at every connect is really bothering and I think its pretty easy for you for to make it)

Detect hit zones (at least head properly)

Try to sync blur efect and make it toggleable via script (I know you already tried)

Try to polish vehicle surf a lil bit further. Its pretty much ok right now, but e.g. jumping from one driven vehicle to another is still pain in the ass

Try to fix bug when sometimes for some players train in SF stations seems for them to be on tram railway and then it is driving around the city.

I know you were able to make undriven vehicles synced (in terms of damage) since begining but please make it toggleable in ongamemodeinit.
I know it will harm consistent gameplay thing a lil bit, but it would be just awesome. Some guys love blowing things up (every guy ?).

Via 3rd F7 mode hide even all textdraws / gametexts (for cameraman use at any server)

Finally enable F10 server stats thing ?

Add some filters for server search in internet list

Try to sync some stuff like cranes.

Try to handle casinos and stunt bonuses. I would like to have control over casino income / money manipulation as well as in case of stunt bonus income.

Sergei 18/10/2009 09:58 AM

Re: Suggestions For Future Sa:MP Versions.
 
1. ToggleVehicleEngine(vehicleid,toggle)

2. ToggleVehicleLights(vehicleid,toggle)

3. Being able to use colors in dialogs

4. OnPlayerCasinoUse(playerid,moneychange,interior,ma chineid)

5. Beign able to create all types of checkpoints, in different colours and also increment of checkpoint limit

6. Add TOS option in SetPlayerChatBubble

7. SetPlayerParamsForPlayer(playerid,forplayerid,obje ctive,color) - basically making objectives in selected color to show above players like in SP

8. SetVehicleParamsForPlayer(vehicleid,playerid,objec tive,color,doorslocked,tire1,tire2,tire3,tire4) - being able to choose color of the objective and also set status of each tire (popped or fixed)

9. Remove default gates in KACC base and the elevators from army ship in SF

10. RotateObject(objectid,Float:RotX,Float:RotY,Float: RotZ,Float:Speed)

11. TogglePlayerControllableEx(playerid,toggle) - same as original one, just that this one doesn't freeze player's camera, but only character

Joel_Krantz 18/10/2009 10:12 AM

Re: Suggestions For Future Sa:MP Versions.
 
  • SetInstagibForWeapon(warponid)
  • AttachVehicleToVehicle(vehid, tovehid)

More to come, sitting in a car ATM.

Guedes747 18/10/2009 11:06 AM

Re: Suggestions For Future Sa:MP Versions.
 
-Sync colors (above 400)
-Sync Heatseek missiles ( Hydra and Heatseek Rocket launcher )
-Sync the landing gears on Bots ( i think in players case, they are allready sync'ed)

woot 18/10/2009 11:20 AM

Re: Suggestions For Future Sa:MP Versions.
 
Global:
- EnableVehicleRadioStations ( 0 ); (true/false)


Individual:
- SetVehicleRadioStation ( vehicleid, radiostationid );
- SetWeaponDamage ( weaponid, Float:damage );
- SetMaxVehicleSpeed ( modelid, speed ); // kmh / mph

erorcun 18/10/2009 11:29 AM

Re: Suggestions For Future Sa:MP Versions.
 
TogglePassengerRadio(vehicleid,toggle);
SetVehicleRadioStation(vehicleid,radio);
SetVehicleDamage(vehicleid,partid,damage);
GetVehicleDamage(vehicleid,partid) return damage
GetTrafficLightColor(lightid) return 0=red 1=green
GetTrafficLightID(Float:x,Float:y,Float:z) return id

Example Usage:
pawn Code:
light1 = GetTrafficLightColor(GetTrafficLightID(1254.4465,-8752.125,78.235));

niCe 18/10/2009 01:01 PM

[Suggestion] Detecting hit/damage for next version of SA-MP
 
I believe there already is a system that remembers and assigns killerid in OnPlayerDeath, so maybe adding some callback to detect when player has attacked another player would be a good idea.

Sergei 18/10/2009 01:38 PM

Re: Suggestions For Future Sa:MP Versions.
 
OnVehicleUpdate(vehicleid)

Same as OnPlayerUpdate just version for vehicles.

Cedimedi 18/10/2009 02:20 PM

Re: Suggestions For Future Sa:MP Versions.
 
NPC: OnShootHit. - if this would exist you could mix it with SetPlayerHealth

TooglePlayerPartdamage. - parts of the body, if some shoots on the head you will die 100% and if some just shoots in your arm you will only loose 40% etc.

ToogleDynamicWeather - like with TooglePlayerClock, you just don't need to have a clock

ToogleVehicleGodMode - vehicle can't explode/damage, like a cheat

TooglePlayerGodMode - ^


Allready posted: OnVehicleDamage

Diablosrouge 18/10/2009 02:25 PM

Re: Suggestions For Future Sa:MP Versions.
 
My suggestion, still:

http://forum.sa-mp.com/index.php?top...8688#msg728688

Double-O-Seven 18/10/2009 02:42 PM

Re: Suggestions For Future Sa:MP Versions.
 
TextDrawCreateForPlayer etc. would be great. TextDraws only for one player.

sasuke78200 18/10/2009 02:53 PM

Re: Suggestions For Future Sa:MP Versions.
 
- Disable / Enable Headshot
- GetAttacker(playerid,attackerid);


Correlli 18/10/2009 03:02 PM

Re: Suggestions For Future Sa:MP Versions.
 
I really hope there will be new major version(s) after 0.3, but here are my suggestions anyway:

For pickups:
CreatePlayerPickup(playerid, modelid, Float:X, Float:Y, Float:Z);
DestroyPlayerPickup(playerid, pickupid);
AttachPickupToPlayer(pickupid, playerid, Float:X, Float:Y, Float:Z);
MovePickup(pickupid, Float:X, Float:Y, Float:Z, Float:Speed);
StopPickup(pickupid);
MovePlayerPickup(playerid, pickupid, Float:X, Float:Y, Float:Z, Float:Speed);
StopPlayerPickup(playerid, pickupid);

For plugins:
- three new rcon commands:
/rcon loadplugin [pluginname]
Load a plugin to server just like filterscript.

/rcon unloadplugin [pluginname]
Unload a plugin from server just like filterscript.

/rcon reloadplugin [pluginname]
Reload a plugin on server just like filterscript.

Means these commands should be for console too (loadplugin, unloadplugin, reloadplugin),

and for SendRconCommand-function:
SendRconCommand("loadplugin");
SendRconCommand("unloadplugin");
SendRconCommand("reloadplugin");

Aur0nX390 18/10/2009 03:08 PM

Re: Suggestions For Future Sa:MP Versions.
 
Maybe a function like "ClosePlayerGame" or something.

pawn Code:
//This is an example
if(strcmp(cmd, "/closegame", true) == 0)
{
  ClosePlayerGame(playerid); //This would close the SA-MP game screen of the player who uses it
  return 1;
}

Obviously, people could make it into an admin command for crashing people (but without fucking their screen up).

Or maybe Kye could make a function, like "SendRconCommand" but for normal Client commands, let us pretend it's called "SendClientCommand"

pawn Code:
//This is an example
if(strcmp(cmd, "/closegame", true) == 0)
{
  SendClientCommand(playerid, /quit); //This would close the SA-MP game screen of the player who uses it
  return 1;
}

Now obviously, I'm not a C/C++ coder, so I wouldn't know if this was even possible, but it is an idea. I hope people see what I mean.

Taken from my post, found HERE, I think it'd be a nice idea...

[03]Garsino 18/10/2009 03:18 PM

Re: Suggestions For Future Sa:MP Versions.
 
  • An Rcon Command To Make People Quit - /rcon Forcequit or something

Riaz 18/10/2009 03:59 PM

[suggestion] Set/GetFPSLimit() and Set/GetPlayerPagesize()
 
Set/GetFPSLimit() and Set/GetPlayerPagesize()
Maybe add to next versions this functions? I think it's very useful for somebody ;)

sgvaibhav 18/10/2009 04:00 PM

Re: Suggestions For Future Sa:MP Versions.
 
allow users to speak by holding down a button, like how its in cs (u hold k, and speak and others can hear u), something similar can be made over here too.

beckzy 18/10/2009 05:32 PM

Re: Suggestions For Future Sa:MP Versions.
 
- Fix casino poker machines or disable them
- Sync arcade machines
- Remove object CT_GATEXR (opens in a mission in single player)
Quote:

$2666 = Object.Init(#CT_GATEXR, -2179.353, 661.232, 50.214)
Object.Indestructibility($2666) = False
Object.RemoveFromMissionCleanupList($2666)
- Clean up vehicles, players, objects, pickups, etc with Kick and Ban like when the server shuts down
- Sync NPC landing gear

[MG3]Nino 18/10/2009 08:31 PM

Re: Suggestions For Future Sa:MP Versions.
 
EnableMenuRow(menu, row); //recreate the menu is shit xD
DisableCasinos(); //Disable all Casinos so they cant "play" there D:

PyroFox 18/10/2009 09:03 PM

Re: Suggestions For Future Sa:MP Versions.
 
SetVehicleNonSolid. Allows cars to drive through each other, handy for race/stunt servers.

Blantas 18/10/2009 09:32 PM

Re: Suggestions For Future Sa:MP Versions.
 
- FadePlayerCamera(playerid, type, color)
- RedirectPlayer(playerid, serverip[], port[], password[]);
- GetPlayerCursor(playerid, float:X, float:Y)
- SetPlayerCursor(playerid, float:X, float:Y)
- SetWaveHeight(float:height)
- SetWaterLevel(float:level)

:)

EDIT: + IsPlayerInWater(playerid)

beckzy 18/10/2009 09:46 PM

Re: Suggestions For Future Sa:MP Versions.
 
IsPlayerInWater would be great.

Quote:

Originally Posted by kaisersouse Reply #90 on: October 31, 2007, 08:53:03 am
Revisiting the IsPlayerInWater bit:

I thought about this on the ride home last night. Whenever you are in water enough to swim, the oxygen bar shows up in the health/armor area. Would it be fairly easy to detect when a player has this bar displayed (instead of relying on the animation itself)? If the bar is displayed, typically that means the player IS in a significant amount of water.


StrickenKid 19/10/2009 04:03 AM

Audio Streams Suggestion - 0.3
 
I was messing around with SAAT earlier and I was wondering about using the streams in game, now with the new PlayCrimeReportForPlayer if I'm right, that uses the crime reports from the streams, so if that is, it would be awesome to expand that so we can play any of the streams.

Function: PlayAudioStreamForPlayer
Parameters: (playerid, stream[], name[])

Function: StopPlayingAudioStreamForPlayer
Parameters: (playerid)

Example function:
Code:

PlayAudioStreamForPlayer(playerid, "BEATS", "intro");
and
Code:

StopPlayingAudioStreamForPlayer(playerid);
now that would play the second ogg vorbis file in "BEATS", and of course the names will need to be set....

With this, we would be able to play any sound from GTA:SA including location music, and radio, and cut-scene talking etc...
Just thought I'd mention that :)

Incognito 19/10/2009 07:53 AM

Re: Suggestions For Future Sa:MP Versions.
 
That can already be done with my audio client, though obviously the files from the archive will need to be extracted first before they can be played back (I suspect it is possible to play them from memory as well, but since SAAT only extracts and imports files in bulk, that was a little beyond the scope of what I was originally trying to accomplish).

Also, I doubt PlayCrimeReportForPlayer works like you described.

Sergei 19/10/2009 08:43 AM

Re: Suggestions For Future Sa:MP Versions.
 
I think that water is kinda state, so we should be able to detect it with GetPlayerState.

Gappy 19/10/2009 09:34 AM

Re: Suggestions For Future Sa:MP Versions.
 
Code:

DisableMenuRowForPlayer(playerid, Menu:menuid, row)
Would be nice, and also
Code:

EnableMenuRowForPlayer(playerid, Menu:menuid, row)

Patrik356b 19/10/2009 10:23 AM

Re: Suggestions For Future Sa:MP Versions.
 
It would be nice if we could unload the defualt objects

Also this would be nice:

AddWater(x_min, y_min, z_min); // adds a cube of water
RemoveWater(x_min, y_min, z_min); // removes a cube of water

Sergei 19/10/2009 10:27 AM

Re: Suggestions For Future Sa:MP Versions.
 
Cube of water ... only in our dreams lol.
SetWaterLevel(level) would be already awesome.

Mikep. 19/10/2009 11:31 AM

Re: Suggestions For Future Sa:MP Versions.
 
Ability to create the type of checkpoint with only 1 ring.
Ability to show a mapicon for a player wherever they are on the map.
OnPlayerEnterVehicle(playerid, vehicleid, seatid).
OnVehicleDeath(vehicleid, killerid, reason) DEATH_REASON_WATER DEATH_REASON_EXPLOSION etc.
OnPlayerClickPlayer CLICK_SOURCE_CHAT.
CreatePickup interior parameter.
Emmet, B-dup and Kendyl skins
SpawnPlayer(playerid, classid)
SetVehicleMovablePart(vehicleid, level) So for example level 0 for dumper truck down and x for up.
GetVehicleMovablePart(vehicleid, PARTNAME) So for example level 0 for dumper truck down and x for up.
MoveVehicleMovablePart(vehicleid, level)
OnObjectAffected(objectid, playerid) called when for example glass breaks
AffectObject(objectid, playerid)
SetPlayerGravity() and SetVehicleGravity()
Ability to highlight text in chat like in the type-box (and copy etc.)

eminich 19/10/2009 12:41 PM

Re: Suggestions For Future Sa:MP Versions.
 
1. when i set someones health to 1000HP it should be considered as its 100%, so when damage is done on player for 500HP his HP bar should appear as half full, example SetDefaultHPForPlayer(playerid, float:amount)

2. fix widescreen bug

3. MovePlayerCamera(playerid, float:fromX, float:fromY, float:Z, float:toX, float:toY, float:toZ)

4. SetPlayerCameraAngle(playerid, float:angle)

beckzy 19/10/2009 02:27 PM

Re: Suggestions For Future Sa:MP Versions.
 
Quote:

Originally Posted by $ЯĢ
I think that water is kinda state, so we should be able to detect it with GetPlayerState.

No because that would break most people's scripts. IsPlayerInWater would be better.

Sergei 19/10/2009 02:31 PM

Re: Suggestions For Future Sa:MP Versions.
 
Quote:

Originally Posted by BeckzyBoi
Quote:

Originally Posted by $ЯĢ
I think that water is kinda state, so we should be able to detect it with GetPlayerState.

No because that would break most people's scripts. IsPlayerInWater would be better.

Why so?
pawn Code:
public IsPlayerInWater(playerid)
{
  if(GetPlayerState(playerid) == PLAYER_STATE_INWATER) return 1;
  return 0;
}
It would be useful because with OnPlayerStateChange we would be informed when player enters/exits water.

Blantas 19/10/2009 02:54 PM

Re: Suggestions For Future Sa:MP Versions.
 
Maybe SPECIAL_ACTION_ENTER_WATER and SPECIAL_ACTION_EXIT_WATER would be better.

Westie 19/10/2009 04:31 PM

Re: Suggestions For Future Sa:MP Versions.
 
A completely new query protocol, and the possibility to plot your own train/tram tracks.

beckzy 19/10/2009 04:39 PM

Re: Suggestions For Future Sa:MP Versions.
 
Quote:

Originally Posted by $ЯĢ
Quote:

Originally Posted by BeckzyBoi
Quote:

Originally Posted by $ЯĢ
I think that water is kinda state, so we should be able to detect it with GetPlayerState.

No because that would break most people's scripts. IsPlayerInWater would be better.

Why so?
pawn Code:
public IsPlayerInWater(playerid)
{
  if(GetPlayerState(playerid) == PLAYER_STATE_INWATER) return 1;
  return 0;
}
It would be useful because with OnPlayerStateChange we would be informed when player enters/exits water.

It will break peoples scripts because they will have to modify their OnPlayerStateChange and every occurance of GetPlayerState. An IsPlayerInWater function would be much better. Or detectable by SPECIAL_ACTION_SWIMMING like how crouch is detectable with SPECIAL_ACTION_DUCK.

MenaceX^ 19/10/2009 05:24 PM

Re: Suggestions For Future Sa:MP Versions.
 
pawn Code:
native TogglePlayerScreen(bool:toggle);
Will freeze/unfreeze the player's screen, can be used a lot.

IGnoTon 19/10/2009 05:54 PM

Re: Suggestions For Future Sa:MP Versions.
 
*Make NPC recordings in Debug mode.
*Increase object limit. (we need moooreee, and we won't stop! O_O )
*And is it possible, to place a cube of water, like an object? For things that you want there would be water in...

Diablosrouge 19/10/2009 06:33 PM

Re: Suggestions For Future Sa:MP Versions.
 
Quote:

Originally Posted by IGnoTon
Quote:

Originally Posted by Guedes_
More than 150 objects on sight... (( w/o streamers ))

Its 254 Objects now in 0.3a

- Increase object limit decently. I mean 254 nowadays is NOTHING. (i thought it was 400, but still it's a small amount)
- Increase textdraws limit from 1024 to 2048. Textdraws are getting pretty much used.
- Increase character limit for textdraws.
- Increase Map Icons limit.
- Increase Pickup limit. Less streamers = less lag, so increasing this limit would be better.
- Try to code every functions that we have for players, for NPCs too.
- IsPlayerInWater will be very useful, mainly for RP purposes.
- Sync Satchels.
- Add a function: EnableDefaultObjects(0 or 1); so scripters can activate those little trees and grass, to turn the enviroment a bit more realistic, because at the moment when you see the grass, you think it's always rubber.
- SA-MP Mod Manager as suggested already.
- Being able to play every sound of SA would be nice. Atm the moment theres a short amount compared to the whole game.
- Get a better layout for those GUI windows and buttons. (No offence but it look's like it was made in Paint).
- new function: TurnEngineOff(playerid) and TurnEngineOn(playerid), so when u run out of fuel, car won't stop so roughly like if the brakes got stuck, but the speed will decrease gradually and if u try to press the key to accelerate, it wont have effect.
- Increase Menus limit.

Karlip 19/10/2009 08:00 PM

Re: Suggestions For Future Sa:MP Versions.
 
Finishing syncing satchels would be a very good thing.

Also, diablosrogue, SA-MP mod manager would suck and ruin the meaning of SA-MP.


All times are GMT. The time now is 11:09 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.