0.3e Suggestions
#41

Please enable the bodypart parameter in OnPlayerTakeDamage/OnPlayerGiveDamage.
useful for detecting headshots.
Reply
#42

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
Please enable the bodypart parameter in OnPlayerTakeDamage/OnPlayerGiveDamage.
useful for detecting headshots.
Totally agree on that one!
Reply
#43

Quote:
Originally Posted by 2KY
View Post
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.
Reply
#44

Add
SendPlayerDeathMessage
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
Reply
#45

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.
Reply
#46

A function to attach CameraLookAt position to object would be awesome.

pawn Код:
AttachCameraFrontVectorToObject(playerid, objectid)
Reply
#47

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);
Reply
#48

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.
Reply
#49

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.
Reply
#50

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.
Reply
#51

AttachPlayerObjectToPlayer
AttachObjectToPlayerObject
AttachPlayerObjectToObject
AttachPlayerObjectToPlayerObject
GetPlayerSurfingPlayerObjectID

Thanks
Reply
#52

Set element collidable with any element.
Example:
PHP Code:
public OnPlayerSpawn(playerid)
{
    foreach(
Player,i)
    {
        
SetElementCollidableWith(playerid,i,false);
    }
    return 
1;

Reply
#53

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.
Reply
#54

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.
Reply
#55

ExplodeVehicle().
Reply
#56

A worldid parameter to CreateExplosion would be useful:

CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius, virtualworld = -1)
Reply
#57

Quote:
Originally Posted by BeckzyBoi
View Post
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.
Reply
#58

OnVehicleTakeDamage
Reply
#59

OnCameraPosInterpolated
OnCameraLookAtInterpolated

Colored checkpoints
Reply
#60

Quote:
Originally Posted by Kar
View Post
OnVehicleTakeDamage
OnVehicleDamageStatusUpdate(vehicleid, playerid)
OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)