Suggestions For Future Sa:MP Versions.

CallBack

OnVehicleUpdate(vehicleid, driverid)

If there is no driver so the driverid will be -1
Reply

Put the audio client in the samp install
Reply

GetMousePostionOnScreen ( &Float:X, &Float:Y );
Reply

Why not some-way to detect if a player is using your custom image file?
Reply

pawn Код:
native PromptChatBox(playerid, const message[]);
A function to bring up the chatbox with a pre-written message. This would be useful for helping people to use commands.
Reply

Sync Vehicles in server side.. damage
Reply

1) Make FILE function (similar to HTTP), example use:
pawn Код:
public OnFilterScriptInit()
{
    FILE("files.sa-mp.com", "p_samp");
    return 1;
}

public p_samp(data[], error)
{
    if(!error)
        print(data);

    return 1;
}
Function show: file name, date upload, file size.

2) Add checkbox in dialog.
Reply

I think the main post
pawn Код:
OnPlayerDamaged(playerid, damagerid, bodypart, Float:health, Float:armour);
should be changed to

pawn Код:
#define DAMAGE_TYPE_PLAYER
#define DAMAGE_TYPE_VEHICLE
#define DAMAGE_TYPE_FALL
//#define DAMAGE_TYPE_etc..

OnPlayerDamaged(playerid, damagerid, bodypart, Float:health, Float:armour, damagetype, &passengerseat);
damagerid would be INVALID_PLAYER_ID if damagetype != DAMAGE_TYPE_PLAYER

if damager is a passenger it will put passengerseat as the seat id ^^

edit: nvm GetPlayerVehicleSeat would work fine
Reply

There must be an
pawn Код:
ToggleVehicleControllable(vehicleid,toggle);
I need this xD Just like the vehicle can't move ... vehicle freeze
Reply

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
There must be an
pawn Код:
ToggleVehicleControllable(vehicleid,toggle);
I need this xD Just like the vehicle can't move ... vehicle freeze
You can make that yourself. Just turn off the vehicle engine (can't remember the function name to do this but there is a function for it^^).
Reply

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
You can make that yourself. Just turn off the vehicle engine (can't remember the function name to do this but there is a function for it^^).
No not just turn off engine of the vehicle x) it's difficult to explain ... Just like TogglePlayerControllable(playerid, toggle) ... but for cars. Like for teleporting a car to another map .. that the car don't fall through the objects
Reply

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
It would be more like something to do with physics of the car rather than 'Controllable' because if no one is driving it's not really being controlled in the same sense as TogglePlayerControllable.

But if someone is driving then just use TogglePlayerControllable.
Yes something like that ...
pawn Код:
FreezeVehicle(vehicleid,toggle)
or something else ... But could i script it ... :S i really don't know
Reply

pawn Код:
SetPlayerCameraMode(playerid,mode);
Reply

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
I don't think so no, because SetVehiclePos doesn't work on unoccupied vehicles.
Current version of SA:MP is 0.3c not 0.2x
Reply

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
No not just turn off engine of the vehicle x) it's difficult to explain ... Just like TogglePlayerControllable(playerid, toggle) ... but for cars. Like for teleporting a car to another map .. that the car don't fall through the objects
wiki.sa-mp.com, SetVehiclePos:
Important Note: An empty vehicle will not fall after being teleported into the air.

maybe this helps you...
Reply

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
forward OnVehicleDamaged(vehidleid, playerid, Float:oldhealth, Float:newhealth);
This can be easily scripted, also I bet there's already created
Reply

• Enable trees, stones etc, or add a function like EnableDetailMapObjects();
• Make that only 1 player can in a mod shop
• untoggle Scoreboard or make a setting
• Support for "%" in the Chat
• Add Interior Parameter to AddStaticVehicle/Ex & CreateVehicle/Ex
• Fix Night Visions & Infrared ******s
• Sync Carbombs
• Sync colors of dynamic vehicles
• SA:MP returns wrong killerid when player hurts someone and the victim commit suicide after that
• Client sided object streamer
• When having hydraulics and pressing horn key to jump up, others hear your car horn, but you don't.
• Fully satchel sync

Callbacks:

• OnPlayerStunt(playerid, money) // very good for anti cheat scripts
• OnVehicleCreate(vehicleid)
• OnVehicleDestroy(vehicleid) // It's not the same as OnVehicleDeath
• OnPlayerDamage(playerid, attacker)
• OnPlayerNameChange(playerid, newname, oldname)

Functions:

• SetSpeedBlurLevelForPlayer(playerid, value);
• EnanbleZoneNames();
• SetWaveHeight(value);
• SetPlayerFallOffBike(playerid, 0/1);
• DisableVehicleSurfing(); // would be good for rp/rl server to disable it
• GetVehicleColor(vehicleid, color1, color2);
• GetVehiclePaintjob(vehicleid)
• GetVehicleNumberPlate(vehicleid, string);
• IsStaticVehicle(vehicleid);

------
I know some of my suggestions are scriptable but nativ it would be a lot better.
Reply

Something like this could be really nice!
  • GetClosestEnterExitArrowID(playerid) - Returns to the closest Enter/Exit arrow-id to the player
  • or
  • GetEnterExitArrowID(Float, Float:y, Float:z, Float:radius) - Returns to the closest Enter/Exit arrow-id to the entered posison (X, Y, Z)
  • DisableEnterExitArrow(...) - Disables/Removes the arrow
usage:
pawn Код:
COMMAND:carrow(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "The closest yellow arrow are: %d", GetClosestEnterExitArrowID(playerid));
    SendClientMessage(playerid, 0xFF0000AA, string);
}

public OnGameModeInit()
{
    DisableEnterExitArrow(1, 3, 18, 126, 174);
    return 1;
}
Reply

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
forward OnVehicleDamaged(vehidleid, playerid, Float:oldhealth, Float:newhealth, part);
part is like.. doors etc
Reply

Already there.
pawn Код:
OnVehicleDamageStatusUpdate(vehicleid,playerid);
Reply


Forum Jump:


Users browsing this thread: 13 Guest(s)