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)

beckzy 03/11/2009 09:20 PM

Re: Suggestions For Future Sa:MP Versions.
 
SetObjectIndestructibility(objectid, bool)
SetPlayerObjectIndestructibility(playerid, playerobject, bool)

Remi-X 04/11/2009 07:00 AM

Re: Suggestions For Future Sa:MP Versions.
 
-TextDrawSetStringForPlayer(playerid, Text:text, const string[]); //I've suggested this one earlier in the old topic. It would do exaclty the same as TextDrawSetString, but this one alows you to edit a string just for one player. Would be good to use less textdraws that are meaned for a player.
pawn Code:
new Text:TextDraw[MAX_PLAYERS];
public OnPlayerConnect(playerid){
  TextDraw[playerid] = TextDrawCreate(...);
  return 1;
}
public MyTimedCallback(){
  for(new i=0; i<MAX_PLAYERS; i++){
    TextDrawSetString(TextDraw[i], "Hi");
  }
}
Would make for al FULL server 500 TextDraws O.o So you can use 4 textdraws like this.
pawn Code:
new Text:TextDraw;
public OnGameModeInit(){
  TextDraw = TextDrawCreate(...);
}
public MyTimedCallback(){
  for(new i=0; i<MAX_PLAYERS; i++){
    TextDrawSetStringForPlayer(i, TextDraw, "Hi");
  }
}
Would create just ONE textdraw for all players! So you can use 2048 of them, each player based! Wouldn't that be great?

Mikep. 04/11/2009 08:00 AM

Re: Suggestions For Future Sa:MP Versions.
 
Or even better, TextDrawCreateForPlayer etc.

That would be useful indeed.

Correlli 04/11/2009 11:26 AM

Re: Suggestions For Future Sa:MP Versions.
 
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, bool:SOM)

AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, bool:SOM)

AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay, bool:SOM)

SOM = Show on map : true / false. It should be true by default.

If you set SOM to false then you won't see the vehicle marker on the map/radar.

Cedimedi 06/11/2009 09:50 PM

Re: Suggestions For Future Sa:MP Versions.
 
SendPlayerCommand - Same like bots, just for players... would be easy for server menus, if you don't want to add the full script again if you use (for example) /menu for all commands

Remi-X 07/11/2009 09:45 AM

Re: Suggestions For Future Sa:MP Versions.
 
GetPlayerCameraLookAt(playerid, &Float:x, &Float:y, &Float:z);
//Would be nice to check where the player is looking to.

GetVehicleRotation(vehicleid, &Float:rX, &Float:rY, &Float:rZ);
SetVehicleRotation(vehicleid, Float:rX, Float:rY, Float:rZ);
//To check and set vehicle rotation, for example you can easily make an automatic flip script. Or objects attached to you will turn with you.

SetPlayerRotation(playerid, Float:rX, Float:rY, Float:rZ);
//Would be nice when you want to set a player against a wall or something :P

SetGravityOrigin(side); //Or SetGravityOrigin(Float:x, Float:y, Float:z);
SetPlayerGravityOrigin(playerid, side); //Or SetPlayerGravityOrigin(playerid, Float:x, Float:y, Float:z);
//Sides: West, East, North, South, Up, Down. Will allow you to moonwalk or something :P

AttachPlayerToVehicle(playerid, vehicleid);
//Will do the same as AttachObjectToPlayer, but this one is with a player and vehicle. Usefull to create a vehicle surfing script.

@Below me:
GetPlayerCameraPos is almost the same as nothing, normally it's almost the same pos as GetPlayerPos, and it would be scriptable.

Blantas 07/11/2009 05:43 PM

Re: Suggestions For Future Sa:MP Versions.
 
Remove clientside message:

Code:

Connected to ***********
Or at least send this message before server calls OnPlayerConnect callback.

Patrik356b 07/11/2009 07:40 PM

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

Originally Posted by Remi-X
pawn Code:
native CreateCustomObjectForPlayer(playerid, modid, dfffile[], txdfile[], colfile[], Float:x, Float:y, Float:z); //new object = Load.....
native LoadCustomVehicleForPlayer(playerid, modid, dfffile[], txdfile[], replacement[]);
native LoadCustomWeaponForPlayer(playerid, modid, dfffile[], txdfile[], replacement[]);
native UnloadCustomModForPlayer(playerid, modid);

forward OnPlayerDownloadStart(playerid, modid);
forward OnPlayerDownloadCancel(playerid, modid);
forward OnPlayerDownloadFinish(playerid, modid);

Why not also add these:

pawn Code:
LoadCustomHandlingCFG(file.cfg); // Loads a custom handling.cfg file
EnableCustomHandlingCFG(cfg_id, playerid); // Makes playerid use the custom handling.cfg
DisableCustomHandlingCFG(playerid); // Stops the useage for playerid of the custom handling.cfg
UnloadCustomHandlingCFG(cfg_id); // Unloadfs a custom handling.cfg file


Here are some more ideas:
Abillity to control the water height and wave hights

Server controlled loading place:
(The place before you have connected to the server)

This would be a good way to do it:
  • You Click "Connect"
  • Client sends a question to that server
  • Client recives data from the server
  • Loading Game, at X, Y, Z, LookX, LookY, LookZ
  • Finnished, Connected, does the normal stuff


I also want those K.A.F.C. gates to be removed:

http://i294.photobucket.com/albums/m.../sa-mp-003.png

MX_Master 08/11/2009 07:41 AM

Re: Suggestions For Future Sa:MP Versions.
 
I WANT static 3DText ( like chat ) with some new abilities ( like TextDraws ):

* UTF-8 support for multilanguage modes
* font size
* font color
* text shadow color
* text box screen XY position
* text box XY sizes
* text box background color
* ShowStaticTextForPlayer
* ShowStaticTextForAll

TextDraws uses game fonts textures and that fact makes multilangual systems too hard. I just want to make this easy.

homo69 08/11/2009 08:18 AM

Re: Suggestions For Future Sa:MP Versions.
 
I've got few ideas

-Try to get the radio working on server, so all who listens for example "SF-UR" can hear the same song. (at same time)
-Weapons skills must be trained like in singleplayer.
-And make the "Connect to ip" option

I dont know are they good, but I would like them =)


All times are GMT. The time now is 05:02 AM.

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