SA-MP 0.3c R3/R4/R5 server update
#21

Nice, thanks.
Reply
#22

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.
Reply
#23

Great Update
Reply
#24

Great. Is there any scripting bug fixed?
Reply
#25

Great update
Reply
#26

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).
Reply
#27

thanks for update, Kalcor this will be useful.
Reply
#28

URL is broken I can't download this new version of server
Reply
#29

Awesome. Thanks for OnUnoccupiedVehicleUpdate!!!
Reply
#30

This update didn't fix the server crashes....
Reply
#31

Thanks Kalcor for releasing a new Update finally
keep up working
Reply
#32

Useful functions & callback added.

Great job!
Reply
#33

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

IMHO, this may help server owners detect vehicle cheaters.
Reply
#34

GetPlayerCameraMode is really usefull, thanks Kalcor !
Reply
#35

So if you use GetPlayerCameraMode(playerid); for IsPlayerAiming, = wins all the IsPlayerAiming includes?
Reply
#36

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);
}
Reply
#37

Awesome update, good job as always Kalcor.
Reply
#38

Not bad )) keep it up )
Reply
#39

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;
    }
}
Reply
#40

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


Forum Jump:


Users browsing this thread: 1 Guest(s)