Re: 0.3e Suggestions -
Gamer_Z - 08.03.2012
Please enable the bodypart parameter in OnPlayerTakeDamage/OnPlayerGiveDamage.
useful for detecting headshots.
Re: 0.3e Suggestions -
KingHual - 08.03.2012
Quote:
Originally Posted by Gamer_Z
Please enable the bodypart parameter in OnPlayerTakeDamage/OnPlayerGiveDamage.
useful for detecting headshots.
|
Totally agree on that one!
Re: [Suggestion] Tab list customization -
Kitten - 08.03.2012
Quote:
Originally Posted by 2KY
I don't know about the rest of you, but a customized tab-list would make servers look a lot more organized in my opinion.
Being able to add groups to the tab-list (maybe with the ability to add hex-colours to them aswell, like dialogs & client messages?)
Functions could be like so, of course, you could rename/add/delete functions as you felt fit, I just think it'd be a nice suggestion for SA:MP '0.3e'
pawn Code:
native CreateTabGroup( name[] ); new g_2KY = CreateTabGroup( "2KY" ); native SetTabGroupName ( groupid, name[] ); SetTabGroupName( g_2KY, "2KY_Renamed" ); native SetTabGroupColour ( groupid, colour ); SetTabGroupColour( g_2KY, 0xC70E11FF ); native SetPlayerTabGroup( playerid, groupid ); SetPlayerTabGroup( playerid, g_2KY ); native DeletePlayerTabGroup( playerid, groupid ); DeletePlayerTabGroup( playerid, g_2KY ); //This would 'kick' them out of the group 'g_2KY' native GetPlayerTabGroup( playerid ); GetPlayerTabGroup( playerid ); native ShowTabGroupForPlayer( playerid, groupid ); ShowTabGroupForPlayer( playerid, g_2KY ); native HideTabGroupForPlayer( playerid, groupid ); HideTabGroupForPlayer( playerid, g_2KY ); native DeleteTabGroup( groupid ); DeleteTabGroup( g_2KY );
I wrote up a quick script on the TDM aspect using this;
pawn Code:
new p_ranTeam[MAX_PLAYERS] = -1;
public OnGameModeInit( ) { new GroupID[2]; //'0' and '1' GroupID[0] = CreateTabGroup( "{C70E11}Attackers" ); GroupID[1] = CreateTabGroup( "{527D09}Defenders" ); return true; }
public OnGameModeExit( ) { DeleteTabGroup( GroupID[0] ); DeleteTabGroup( GroupID[1] ); }
public OnPlayerConnect( playerid ) { p_ranTeam[playerid] = random(2);
switch( p_ranTeam[ playerid ] ) { case 0: { SendClientMessage( playerid, -1, "You have been randomly selected to be an Attacker!" ); SetPlayerTabGroup( playerid, GroupID[0] ); } case 1: { SendClientMessage( playerid, -1, "You have been randomly selected to be a Defender!" ); SetPlayerTabGroup( playerid, GroupID[1] ); } } return true; }
public OnPlayerSpawn( playerid ) { switch( p_ranTeam[ playerid ] ) { case 0: SetPlayerPos( playerid, 0.0, 0.0, 10.0 ); case 1: SetPlayerPos( playerid, 20.0, 20.0, 10.0 ); } return true; }
public OnPlayerDisconnect( playerid, reason ) { return p_ranTeam[ playerid ] = -1; }
Also drew up a diagram to go with said script...
Opinions?
|
This.
Re: 0.3e Suggestions -
][Noname][ - 08.03.2012
Add
Send
PlayerDeathMessage
Need in really situation on my server
Reasons:
1) If you want to send DeathMessage only for 1 player you can't do this
2) Need send different DeathMessage to player's in diffenent virtualworld
Re: 0.3e Suggestions -
ev0lution - 08.03.2012
I would assume something like this is already planned and if not, it'd be quite easy to implement.
OnCameraMoved and
OnCameraLookedAt callbacks for dealing with the new smooth camera movements - could create some very nice looking cutscenes.
Re: 0.3e Suggestions -
Blantas - 08.03.2012
A function to attach CameraLookAt position to object would be awesome.
pawn Код:
AttachCameraFrontVectorToObject(playerid, objectid)
Re: 0.3e Suggestions -
SpiritEvil - 08.03.2012
Quote:
Originally Posted by Blantas
A function to attach CameraLookAt position to object would be awesome.
pawn Код:
AttachCameraFrontVectorToObject(playerid, objectid)
|
Already added
pawn Код:
native AttachCameraToObject(playerid, objectid);
native AttachCameraToPlayerObject(playerid, playerobjectid);
Re: 0.3e Suggestions -
Blantas - 08.03.2012
Quote:
Originally Posted by SpiritEvil
Already added
pawn Код:
native AttachCameraToObject(playerid, objectid); native AttachCameraToPlayerObject(playerid, playerobjectid);
|
These functions control camera position. Not a point where camera is looking to.
Re: 0.3e Suggestions -
Kyle - 08.03.2012
Quote:
Originally Posted by ev0lutionnn
I would assume something like this is already planned and if not, it'd be quite easy to implement.
OnCameraMoved and OnCameraLookedAt callbacks for dealing with the new smooth camera movements - could create some very nice looking cutscenes.
|
I'm sure there is some kind of equasion using the time to work out how long it would be.
Re: 0.3e Suggestions -
ev0lution - 08.03.2012
Quote:
Originally Posted by KyleSmith
I'm sure there is some kind of equasion using the time to work out how long it would be.
|
GetTickCount() + time, sure. But the same could be said about objects - it's simply easier (and more accurate) to work with callbacks like this.
Re: 0.3e Suggestions -
beckzy - 08.03.2012
AttachPlayerObjectToPlayer
AttachObjectToPlayerObject
AttachPlayerObjectToObject
AttachPlayerObjectToPlayerObject
GetPlayerSurfingPlayerObjectID
Thanks
Re: 0.3e Suggestions -
lackos888 - 08.03.2012
Set element collidable with any element.
Example:
PHP Code:
public OnPlayerSpawn(playerid)
{
foreach(Player,i)
{
SetElementCollidableWith(playerid,i,false);
}
return 1;
}
Re: 0.3e Suggestions -
3ventic - 08.03.2012
I'm pretty sure this or something like it has been suggested before, but:
A function to add, remove and rename columns in the scoreboard. Like
pawn Code:
native EditScoreboardColumn(id, name);
native RemoveScoreboardColumn(id);
native SetStat(id, string);
in which id is the position of the column counter from left and starting from 0, name is the new name for the column and number is string is a value to set to the column. EditScoreboardColumn would create a new column, if one didn't exist for the id given and the amount would be limited so the scoreboard is easily readable for everyone.
P.S. I'm not good with pawn.
Re: 0.3e Suggestions -
beckzy - 08.03.2012
Please sync bomb shops, or disable bomb shop doors, or make a function to control garage doors in San Andreas, or fix the client crash on connect when you replace the bomb doors using RemoveBuildingForPlayer and creating them again in the same place with CreateObject.
Re: 0.3e Suggestions -
MP2 - 08.03.2012
ExplodeVehicle().
Re: 0.3e Suggestions -
beckzy - 08.03.2012
A worldid parameter to CreateExplosion would be useful:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius,
virtualworld = -1)
Re: 0.3e Suggestions -
MP2 - 08.03.2012
Quote:
Originally Posted by BeckzyBoi
A worldid parameter to CreateExplosion would be useful:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius, virtualworld = -1)
|
This has been needed for sooooooooooooooooo long and would be piss easy to implement, please do it Kalcor.
Re: 0.3e Suggestions -
Kar - 08.03.2012
OnVehicleTakeDamage
Re: 0.3e Suggestions -
Pooh7 - 08.03.2012
OnCameraPosInterpolated
OnCameraLookAtInterpolated
Colored checkpoints
Re: 0.3e Suggestions -
lolumadd_ - 08.03.2012
Quote:
Originally Posted by Kar
OnVehicleTakeDamage
|
OnVehicleDamageStatusUpdate(vehicleid, playerid)
OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)