Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward SetPlayerPosWithVehicle(playerid, Float:x, Float:y, Float:z);
- public SetPlayerPosWithVehicle(playerid, Float:x, Float:y, Float:z)
- {
- new pvehid,pseatid;
- if(IsPlayerInAnyVehicle(playerid))
- {
- pvehid = GetPlayerVehicleID(playerid);
- pseatid = GetPlayerVehicleSeat(playerid);
- RemovePlayerFromVehicle(playerid);
- SetPlayerPos(playerid, x, y, z);
- SetVehiclePos(pvehid, x, y, z);
- PutPlayerInVehicle(playerid, pvehid, pseatid);
- return 1;
- }
- SetPlayerPos(playerid, x, y, z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement