Little Suggestions for SA:MP 0.3
#21

Quote:
Originally Posted by BeckzyBoi
Position in the air-Position on the ground?

Surely you have at some point in your life done subtraction?..

Ok then smartass...what do i use for a reference point for ground Z if there is nothing (like another player standing on the ground) to use as reference? The abandoned airfield ground Z is ~ 16. The top of Chiliad is ~400. If I'm in a plane and want to create an explosion...on the ground...directly underneath me...how would I determine the Z value to use for that explosion and put it exactly at ground level in either place? Obviously you can't use 0 because 99% of the time thats underneath the map. If there was a player on the ground, I would GetPlayerPos that person and use their Z value. Thats a no brainer.

What I want to know it how to figure out where exact ground level is depending on the pilot's current X,Y...without using a vehicle or player as a reference point. Since you seem to know the answer, I'd LOVE to hear your insight on the subject.
Reply
#22

As there isn't a GetPlayerPosFindZ you can:

pawn Code:
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosFindZ(playerid, pos[0], pos[1], pos[2]);
GetPlayerPos(playerid, pos[0], pos[1], pos[3]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
Then pos[3] will be the Z of the ground below the player and pos[2] will be where to player is now so to work out the difference you would then do:

pawn Code:
pos[2] -= pos[3];
or
pawn Code:
floatsub(pos[2], pos[3]);
It's hardly rocket science so i don't know why you are calling me a "smartass"..
Reply
#23

If that works, then I will come back and thank you. Either way:

Quote:

Surely you have at some point in your life done subtraction?..

I used "smartass" because "arrogant jerk" just seemed a bit too harsh.
Reply
#24

Quote:
Originally Posted by kaisersouse
If that works, then I will come back and thank you. Either way:

Quote:

Surely you have at some point in your life done subtraction?..

I used "smartass" because "arrogant jerk" just seemed a bit too harsh.
And both seemed unnecessary seeing as though knowing how to subtract, especially with pawn where you don't need to do calculations as it works out the answer for you, is not really being smart..

If you don't like that idea then maybe create a basketball or something at the player and give it 10 seconds to drop, once it has dropped then get the object's position and work out the difference.
Reply
#25

Quote:
Originally Posted by BeckzyBoi
Quote:
Originally Posted by kaisersouse
If that works, then I will come back and thank you. Either way:

Quote:

Surely you have at some point in your life done subtraction?..

I used "smartass" because "arrogant jerk" just seemed a bit too harsh.
And both seemed unnecessary seeing as though knowing how to subtract, especially with pawn where you don't need to do calculations as it works out the answer for you, is not really being smart..

If you don't like that idea then maybe create a basketball or something at the player and give it 10 seconds to drop, once it has dropped then get the object's position and work out the difference.
Nope, basic subtraction doesn't require much in the way of brains. My issue was trying to get the original values that required the subtraction. Your second post on that issue (the one that actually helped) was far more useful than the first (holier-than-thou pointing out of the obvious).
Reply
#26

Talkin about Basketball, how about putting that Basketball Mini-Game from SP?

Hehe, you can play basketball games with other people in a Server on the Courts. This will add Fun on some servers if this gets synced and implemented on 0.3
Reply
#27

Speaking of those type of native commands. Please remove /save and /interior from servers like you did with /kill. Just make them debug commands only. It is very easy to make /save and /interior for yourself anyway in your script if you would still like to keep them.
Reply
#28

Be cool if the combine was synced so when you ran people over with it it appears they go throught the combine instead of under it.
Reply
#29

Quote:
Originally Posted by BeckzyBoi
Speaking of those type of native commands. Please remove /save and /interior from servers like you did with /kill. Just make them debug commands only. It is very easy to make /save and /interior for yourself anyway in your script if you would still like to keep them.
I don't understand why having /save and /interior would hurt anything.
Reply
#30

I would like them to be like a toggle, so then if your paranoid you can stop people ripping your script.

ScriptCommands(1);

:P
Reply
#31

I know a way Via scripting That Allows Unlimited Spriting I'm gunna make a FS on it, one day
Reply
#32

Quote:
Originally Posted by Grove
I know a way Via scripting That Allows Unlimited Spriting I'm gunna make a FS on it, one day
[me="[SWK]Randy.SiN"]waits[/me]

Got a guess you just spawn the player?
Reply
#33

Quote:
Originally Posted by Peter
Quote:
Originally Posted by Pixels^
Quote:
Originally Posted by Towlies
Quote:
Originally Posted by gothem
well i like for 0.3 change the waters levels
I remember this being posted before. I think the water is simply sectioned out into pieces. So the water level needs to be raised globally. Which I find to be quite useless in the way its used.
Water levels can be done client by client.
The water is divided into a little over 300 sections on the map, all with their own settings as for wave-height, strenghts and positions. Increasing the water level would either mean hooking all functions related to the height, what would be quite a job, or to backup/restore all 300 sections (which are divided into triangles and/or rectangles themselfes) on request, which would be quite a job as well. Features like that have to be thought out carefully, you can't just go on and make them.

Synched minigames would be kindof useless, since minigames are single-player. I recon it would be possible to activate them, getting the player's highscore even, however, it would have no addition upon the multiplayer experience. Therefore it would be way more interesting to sync something like the pool table, effectively allowing players to pool with eachother, even though that would be quite hard as well.
sry for respond very late but that will be need change the water.dat file

and know a program for change it called "water level" i will post if found

<removed> if like the program pm me (modify the water.dat)
Reply
#34

gothem I wouldn't do that if I were you, if dev team wanted us to change water level they would have shown us what we need, plus changing the water level could be detected as a cheat.
Reply
#35

that is true

but i dont know how work sa-mp but can be a function like this:

pawn Code:
public OnGameModeInt()
{
ToggleWaterLevel(Toggle,Level,Wave Level);
}
and that enter in the data of sa and change the water.dat
and when player exit restore it.
Reply
#36

TurnLights(vehicleid, bool);
Reply
#37

I don't know if this is suggested, but I'd like to suggest a function to find a z value from x & y values. Fx

PosXYFindZ(Float,Float:y)

If there's more than 1 z value for the xy coordinates it should pick a random one. Or else you could make an extension to it:

PosXYFindZEx(Float,Float:y,Float:cmpZ)

Here it should take the z-value for the XY-point which is closest to the cmpZ float.
Reply
#38

(I don't know if I should have posted this in the already active topic for 0.3, But that's mostly to do with scripting functions, this is for the developers to read.)

Dear fellow SA-MP players,
In the strangest place, I came up with the idea of a "Friends List", When in-game, Press a selected hot key, And it would bring up a menu, Where you could search for a friend name, And send them a request. And another sort of menu, Where you can PM them (When not in the same server, Kind of like email). I'm suggesting that maybe when you're not in any server, But your active window is SA-MP (Where you select servers), Maybe up beside where your name is, Could have like an envelope or something to resemble mail, And a friends list. I don't know if someone has already suggested this idea, But it would be very helpful to keep in contact with people you meet in SA-MP, Especially the ones who don't have MSN or XFire, Or AIM or anything like that. If the developers will like to close this and let me post it in the "Suggestions for 0.3" topic, Feel free. But this modification isn't do to with scripting.
Please let me know what you think of this idea.

P.S. When I said "In the strangest place" at the start, I dreamed of it.

Thanks,
Larry.
Reply
#39

this is a configurable thing on the Browser, and is easy to do it, Setting up the pics path, like SA:MP > Options > Paths > Screenshots > C://Program Files//SA-MP//Screenshots, and you can being able to move the path (where all the pics taken by F8 get saved) just a through
Reply
#40

When was it confirmed that 0.3 was going ahead? Please give me the link..

P.S. Nice idea, although i don't think it is necessary and i think a lot of other things are highly more important.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)