Re: SA-MP 0.3c R3 server update -
Danny - 25.07.2011
Nice, thanks.
Re: SA-MP 0.3c R3 server update - [03]Garsino - 25.07.2011
Cheers for the update. Even though I don't script anymore I think it will come in handy for most of the scripters out there.
AW: SA-MP 0.3c R3 server update -
Littl3j0hNy - 25.07.2011
Great Update
Re: SA-MP 0.3c R3 server update -
leong124 - 25.07.2011
Great. Is there any scripting bug fixed?
Re: SA-MP 0.3c R3 server update -
xRk - 25.07.2011
Great update
Re: SA-MP 0.3c R3 server update -
RAEN - 25.07.2011
Quote:
Originally Posted by Kalcor
New callback:
pawn Код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
This callback is called when a player updates the position of a vehicle they're not driving. This can happen outside of the vehicle or when the player is a passenger of a vehicle that has no driver.
|
If OnVehicleStreamIn, and vehicle falling down, the server think OnUnoccupiedVehicleUpdate. It's bad, because player not touch this vehicle (only OnVehicleStreamIn).
Re: SA-MP 0.3c R3 server update -
Haji - 25.07.2011
thanks for update, Kalcor this will be useful.
Re: SA-MP 0.3c R3 server update -
SDraw - 25.07.2011
URL is broken

I can't download this new version of server
Re: SA-MP 0.3c R3 server update -
AirKite - 25.07.2011
Awesome. Thanks for OnUnoccupiedVehicleUpdate!!!
Re: SA-MP 0.3c R3 server update -
BillyCoolGR - 25.07.2011
This update didn't fix the server crashes....
AW: SA-MP 0.3c R3 server update -
Meta - 25.07.2011
Thanks Kalcor for releasing a new Update finally

keep up working
Re: SA-MP 0.3c R3 server update -
jojllman - 25.07.2011
Useful functions & callback added.
Great job!
Re: SA-MP 0.3c R3 server update -
leong124 - 25.07.2011
Quote:
Originally Posted by RAEN
If OnVehicleStreamIn, and vehicle falling down, the server think OnUnoccupiedVehicleUpdate. It's bad, because player not touch this vehicle (only OnVehicleStreamIn).
|
It's made like that. Since it is streamed in for a player, there's update of its position and other information. That's OnUnoccupiedVehicle
Update.
IMHO, this may help server owners detect vehicle cheaters.
Re: SA-MP 0.3c R3 server update -
IstuntmanI - 25.07.2011
GetPlayerCameraMode is really usefull, thanks Kalcor !
Re: SA-MP 0.3c R3 server update -
FireCat - 25.07.2011
So if you use GetPlayerCameraMode(playerid); for IsPlayerAiming, = wins all the IsPlayerAiming includes?
AW: SA-MP 0.3c R3 server update -
Bubelbub - 25.07.2011
Quote:
Originally Posted by Kalcor
New callback:
pawn Код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
This callback is called when a player updates the position of a vehicle they're not driving. This can happen outside of the vehicle or when the player is a passenger of a vehicle that has no driver.
|
My own English:
I used this on my Roleplay Server.
But i move a Vehicle with a Player or without a Player and i get no Message.
Test Code is at the End of this Post.
****** English:
With me on my server it does not work.
I push a car back and forth.
Whether a person is sitting inside or not, I get no message.
The test code is at the end.
And German
:
Bei mir auf meinem Server klappt das nicht.
Ich schiebe ein Auto hin und her.
Egal ob eine Person drinnen sitzt oder nicht, ich erhalte keine Meldung.
Der Test Code ist am Ende.
Test Code:
pawn Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
{
new string[128];
format(str, 128, "Test [%d] [%d] [%d]", vehicleid, playerid, passenger_seat);
return SendClientMessageToAll(0xFFFF00FFm string);
}
Re: SA-MP 0.3c R3 server update - Deskoft - 25.07.2011
Awesome update, good job as always Kalcor.
Re: SA-MP 0.3c R3 server update -
RenisiL - 25.07.2011
Not bad

)) keep it up

)
Re: AW: SA-MP 0.3c R3 server update -
HP - 25.07.2011
Quote:
Originally Posted by Bubelbub
Test Code:
pawn Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat) { new string[128]; format(str, 128, "Test [%d] [%d] [%d]", vehicleid, playerid, passenger_seat); return SendClientMessageToAll(0xFFFF00FFm string); }
|
This is not how you should use it. There is pretty much everything explained in the wiki.
pawn Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat) {
new
Float: fVehicle[3]; // Array to store the vehicle's co-ordinates
GetVehiclePos(vehicleid, fVehicle[0], fVehicle[1], fVehicle[2]); // Get vehicle co-ordinates and store them into the array we created before
if(!IsPlayerInRangeOfPoint(playerid, 10, fVehicle[0], fVehicle[1], fVehicle[2])) { // If player is not in range of the vehicle we checked (furthest distance in the given example is 10)
// Code for the callback, which gets called if player moves the vehicle and is not driving
return;
}
}
Re: SA-MP 0.3c R3 server update -
IllidanS46 - 25.07.2011
I've found some new camera modes.
pawn Код:
#define CAMERA_MODE_NONE 0
#define CAMERA_MODE_INTRAIN 3
#define CAMERA_MODE_ONFOOT 4
#define CAMERA_MODE_AIM_SNIPER 7
#define CAMERA_MODE_AIM_ROCKETLAUNCHER 8
#define CAMERA_MODE_FIXED_ATSIDE 14
#define CAMERA_MODE_FIXED_POS 15
#define CAMERA_MODE_FIXED_CARBUMPER 16
#define CAMERA_MODE_INCAR 18
#define CAMERA_MODE_INBOAT 22
#define CAMERA_MODE_AIM_CAMERA 46
#define CAMERA_MODE_AIM_HEATSEEKER 51
#define CAMERA_MODE_AIM 53
#define CAMERA_MODE_DRIVEBY 55
#define CAMERA_MODE_FIXED_CINEMA 56
#define CAMERA_MODE_FIXED_CINEMA_FLYOVER 57
#define CAMERA_MODE_FIXED_CINEMA_ZOOM 58
#define CAMERA_MODE_FIXED_CINEMA_UNDER 59
#define CAMERA_MODE_FIXED_CINEMA_SIDE 62
#define CAMERA_MODE_FIXED_CINEMA_ROUND 63
#define CAMERA_MODE_FIXED_CINEMA_HEADON 64
Modes 62 - 64 are available only in plane. Fixed camera is when you can't control it by mouse.