SA-MP Forums Archive
Suggestions For Future Sa:MP Versions. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Suggestions For Future Sa:MP Versions. (/showthread.php?tid=102997)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


Re: Suggestions For Future Sa:MP Versions. - Shawwarma - 30.07.2011

CallBack

OnVehicleUpdate(vehicleid, driverid)

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


Re: Suggestions For Future Sa:MP Versions. - Snipa - 30.07.2011

Put the audio client in the samp install


Re: Suggestions For Future Sa:MP Versions. - iPLEOMAX - 30.07.2011

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


Re: Suggestions For Future Sa:MP Versions. - Donya - 30.07.2011

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


Re: Suggestions For Future Sa:MP Versions. - Calgon - 31.07.2011

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.


Re: Suggestions For Future Sa:MP Versions. - whitedragon - 04.08.2011

Sync Vehicles in server side.. damage


Re: Suggestions For Future Sa:MP Versions. - Diler - 04.08.2011

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.


Re: Suggestions For Future Sa:MP Versions. - Donya - 05.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - Michael@Belgium - 05.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - [03]Garsino - 05.08.2011

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^^).


Re: Suggestions For Future Sa:MP Versions. - Michael@Belgium - 05.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - Michael@Belgium - 05.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - =WoR=Varth - 06.08.2011

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



Re: Suggestions For Future Sa:MP Versions. - Sergei - 06.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - Stefan_Toretto - 06.08.2011

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...


Re: Suggestions For Future Sa:MP Versions. - Gh0sT_ - 11.08.2011

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


AW: Suggestions For Future Sa:MP Versions. - Blokkmonsta - 11.08.2011

• 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.


Re: Suggestions For Future Sa:MP Versions. - Laronic - 11.08.2011

Something like this could be really nice!
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;
}



Re: Suggestions For Future Sa:MP Versions. - Kar - 11.08.2011

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


Re: Suggestions For Future Sa:MP Versions. - =WoR=Varth - 12.08.2011

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