Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
- {
- new VehicleID = GetPlayerVehicleID(playerid),
- szString[200];
- format(szString, sizeof szString, "UPDATE Vehicles SET \
- PosX = %f, \
- PosY = %f, \
- PosZ = %f, \
- posA = %f \
- WHERE ID = %d", ServerVehicles[VehicleID][VehX],
- ServerVehicles[VehicleID][VehY],
- ServerVehicles[VehicleID][VehZ],
- ServerVehicles[VehicleID][VehA],
- ServerVehicles[VehicleID][VehID]);
- db_query(DataBase, szString);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement