SA-MP Forums Archive
Suggestions for future SA:MP updates - 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 updates (/showthread.php?tid=302201)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47


Re : Suggestions for future SA:MP updates - Kilou - 12.02.2014

New function for hide/show vehicles in the minimap
Many servers very need this because some vehicles need to be founded for some many reasons


Re: Suggestions for future SA:MP updates - FizzyCZ - 12.02.2014

Hi creators.
I have one such request. He would add public in style OnPlayerOpenChatBox?
I think it would be a lot of cases the use of this Public.

-----------------------------------------------------------------------------------------------------------------
Sorry for my english, i'm from Czech Republic


Re: Suggestions for future SA:MP updates - 'Pawno. - 12.02.2014

Quote:
Originally Posted by FizzyCZ
Посмотреть сообщение
Hi creators.
I have one such request. He would add public in style OnPlayerOpenChatBox?
I think it would be a lot of cases the use of this Public.

-----------------------------------------------------------------------------------------------------------------
Sorry for my english, i'm from Czech Republic
Better would be:
Deleting OnPlayerText,
add: OnPlayerChat

public OnPlayerChat(playerid, state[0 = close, 1 = opened], text[], success);

state = state of the chatbox (opened or closed)
text[] = text which gets send
success = if the text got send (or 0 = not send)


Re : Re: Suggestions for future SA:MP updates - Kilou - 12.02.2014

Quote:
Originally Posted by 'Pawno.
Посмотреть сообщение
Better would be:
Deleting OnPlayerText,
add: OnPlayerChat

public OnPlayerChat(playerid, state[0 = close, 1 = opened], text[], success);

state = state of the chatbox (opened or closed)
text[] = text which gets send
success = if the text got send (or 0 = not send)
I don't think that's a good idea
The callback will be called 3 times: when the player open the chatbox, when the player close the chatbox, when he send a message
That's three differents things, no reasons to assemble this in one callback


Re: Suggestions for future SA:MP updates - SimonItaly - 12.02.2014

I'd love to see object scaling on global/player objects in future.
I've seen that Kalcor said it was possibile only on attached objects because they don't use collisions (thread), but what about disabling collisions when an object has a different scale from the standard 1.0?
It can bring to some very nice ways of mapping.




Re: Suggestions for future SA:MP updates - KubiPL - 14.02.2014

Код:
//PLAYERS
IsPlayerCollidingObject(playerid, objectid)
IsPlayerCollidingObjectOnFoot(playerid, objectid)
IsPlayerFiring(playerid)
SetPlayerVisiblity(playerid, bool:visible)
AttachPlayerToVehicleAsTurret(playerid, vehicleid, Float:fX, Float:fY, Float:fZ, seat, Float:angle, weaponid)
DetachPlayerFromVehicle(playerid)
IsPlayerInWater(playerid)
AttachPlayerToObjectAsTurret(playerid, objectid, Float:fX, Float:fY, Float:fZ, seat, Float:angle, weaponid)
IsPlayerDamagedByVehicle(playerid, vehicleid)
IsPlayerCollidingVehicle(playerid, vehicleid)
MakePlayerShootAtCoords(playerid, Float:x, Float:y, Float:z, time)
GetPlayerSpeed(playerid, &Float:speed)
IsPlayerInAir(playerid)
GetPlayerHeightAboveGround(playerid, &Float:height)
IsPlayerStuckUnderVehicle(playerid)
IsPlayerCollidingPlayer(playerid, collideplayerid)
SetPlayerSwimSpeed(playerid, Float:speed)
DisplayPlayerHud(playerid, bool:display)
DisplayPlayerRadar(playerid, bool:display)
EnablePlayerNightVision(playerid, bool:enable)
EnablePlayerThermalVision(playerid, bool:enable)
SetPlayerDarknessEffect(playerid, bool:set, value)

//OBJECTS
IsObjectOnPlayerScreen(objectid, playerid)
SetObjectCollision(objectid, bool:enable)
SetObjectDynamic(objectid, set)
IsPlayerAimingObject(playerid, objectid)
HasObjectBeenPhotographed(objectid)
SetObjectScale(objectid, Float:scale)

//VEHICLES
SetCarDrivingStyle(vehicleid, style)
IsCarStuckOnRoof(vehicleid)
SetVehicleWeight(vehicleid, Float:weight)
IsVehicleUpsideDown(vehicleid)
SetVehicleTaxiLights(vehicleid, bool:enable)
IsVehicleInWater(vehicleid)
IsVehicleOnScreen(vehicleid, forplayerid)
SetVehicleVisible(vehicleid, bool:enable)
IsVehicleStuck(vehicleid)
DisableUpsidedDownVehicleExplosion(vehicleid, bool:enable)
GetVehicleDriver(vehicleid, &driverid)
SetVehicleHandling(vehicleid, Float:handling)
SetVehicleRadioStation(vehicleid, radioid)
GetVehicleRadioStation(vehicleid)
ToggleVehicleControllable(vehicleid, bool:freeze)
GetVehicleMass(vehicleid, &Float:mass)
IsVehicleDamagedByPlayer(vehiceid, playerid)
SetVehicleQuaternion(vehicleid, Float:X, Float:Y, Float:Z)

//Other stuff
CreateSearchlight(Float:x, Float:y, Float:z, Float:endx, Float:endy, Float:endz, Float:radius, Float:endradius)
DestroySearchlight(searchlightid)
PointSearchlightAtVehicle(searchlightid, vehicleid, Float:movespeed)
IsVehicleInSearchlight(searchlightid, vehicleid)
GetPlayerSearchlightID(playerid)
And there's the OPCODE of functions (LINK)
I've tested some of this thinks and I can say it can be added in sa-mp (but there is some problem with changing object scale - the collide size isn't changing)


Re: Suggestions for future SA:MP updates - newbienoob - 15.02.2014

How could they MISSED this two important functions?
SetObjectVirtualWorld and SetObjectInterior


Re: Suggestions for future SA:MP updates - B-Matt - 15.02.2014

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
How could they MISSED this two important functions?
SetObjectVirtualWorld and SetObjectInterior
Because you could use streamer where you can define in what interior/virtual world is your object?


Re : Re: Suggestions for future SA:MP updates - Elorreli - 15.02.2014

Quote:
Originally Posted by B-Matt
Посмотреть сообщение
Because you could use streamer where you can define in what interior/virtual world is your object?
It's still a good way to get specific objects.


Re: Suggestions for future SA:MP updates - newbienoob - 15.02.2014

Quote:
Originally Posted by B-Matt
Посмотреть сообщение
Because you could use streamer where you can define in what interior/virtual world is your object?
What if I created an object in world 5 and want to set it to 0? I ain't gonna destroy it and re-create it. More works to do.


Re: Suggestions for future SA:MP updates - Tellken - 15.02.2014



Thus several teams could customize the textures and jackets with logos.



Re: Suggestions for future SA:MP updates - CuervO - 16.02.2014

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
What if I created an object in world 5 and want to set it to 0? I ain't gonna destroy it and re-create it. More works to do.
Streamer_SetIntData(STREAMER_TYPE_OBJECT, object, E_STREAMER_WORLD_ID, 0);


Re: Suggestions for future SA:MP updates - Kar - 22.03.2014

Togglable free-aim (driveby) in boats and helicopters for SA-MP 0.4.

Please?


Re: Suggestions for future SA:MP updates - Onfroi - 23.03.2014

I'm hoping for boxing gloves objects soon.


Re: Suggestions for future SA:MP updates - Aleya - 24.03.2014

ORIGINALLY SUGGESTED BY "MONARO"

Quote:

Hi.
I have a simple suggestion here. As some may know, you can adjust the size of the chatbox/textbox with /pagesize. I think we should be able to do this with the kill-list.

Something like this:
[spoiler][/spoiler]

COMMANDS
/killlistsize (6-12)
OR
/killlist size (6-12)

ADVANTAGES
Can maybe help DM reports or something alike.
People can use it for ''rolling'' screenshots

DISADVANTAGES
Comment if you have one.




Re: Suggestions for future SA:MP updates - Abagail - 30.03.2014

What I'd actually love to see is something like:

GetPlayerCount();
Which can also store a variable so like...
GetPlayerCount(count);


Re: Suggestions for future SA:MP updates - [HLF]Southclaw - 30.03.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
What I'd actually love to see is something like:

GetPlayerCount();
Which can also store a variable so like...
GetPlayerCount(count);
Do you mean this?

pawn Код:
GetPlayerCount()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
            count++;
    }

    return 1;
}
Or a better YSI version:

pawn Код:
Iter_Count(Player);



Re: Suggestions for future SA:MP updates - Djole1337 - 30.03.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
What I'd actually love to see is something like:

GetPlayerCount();
Which can also store a variable so like...
GetPlayerCount(count);
pawn Код:
GetPlayerCount(&count = 0)
{
    for (new i = 0, j = MAX_PLAYERS; i != j; ++ i)
    {
        if (IsPlayerConnected(i))
            ++ count;
    }
    return count;
}



Re: Suggestions for future SA:MP updates - RajatPawar - 30.03.2014

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
pawn Код:
GetPlayerCount(&count = 0)
{
    for (new i = 0, j = MAX_PLAYERS; i != j; ++ i)
    {
        if (IsPlayerConnected(i))
            ++ count;
    }
    return count;
}
A minor question, isn't declaring a new variable, assigning it, simply slowing down the loop?


Re: Suggestions for future SA:MP updates - [HLF]Southclaw - 30.03.2014

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
A minor question, isn't declaring a new variable, assigning it, simply slowing down the loop?
Yes that is pretty counterintuitive since MAX_PLAYERS is a constant anyway. It would make sense if 'j' was to store the return value of a function call in order to save the function from being called each iteration.