Remove player from vehicle -
The Woody - 29.05.2011
Im trying to make a stock that will "teleport" a player out of the vehicle. But i dont know if this would work.
Can anybody help me making it or tell me if it should work. ( Im not on my "gaming" computer for 2 weeks so can't test it ). And i don't get any errors.
pawn Код:
stock RemoveFromVeh(vehicleid)
{
new Float:x1,Float:y1,Float:z1;
GetVehiclePos(vehicleid,x1,y1,z1);
SetPlayerPosFindZ(playerid, x1, y1, z1);
return 1;
}
Thanks
.
Re: Remove player from vehicle -
sleepysnowflake - 29.05.2011
Click me !?
Re: Remove player from vehicle -
Mike Garber - 29.05.2011
Wait... What's wrong with RemovePlayerFromVehicle(playerid); ?
Re: Remove player from vehicle -
The Woody - 29.05.2011
Nah i can't use that, because its kinda "bugged" when you go into a vehicle that your not suppose to you can still drive in it for a second and the vehicle just drives off and i need to stand at the same spot. So in the second you try to go into the vehicle you will get teleported.
Re: Remove player from vehicle -
sleepysnowflake - 29.05.2011
pawn Код:
stock RemoveFromVeh(playerid)
{
new vehicleid;
new Float:x,Float:y,Float:z;
vehicleid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehicleid,x,y,z);
SetVehiclePos(vehicleid,x,y,z);
RemovePlayerFromVehicle(playerid);
return 1;
}
Is this good enough ? The car will stop.
Re: Remove player from vehicle -
The Woody - 29.05.2011
Quote:
Originally Posted by Berlovan
Is this good enough ? The car will stop.
|
Hmm, I can't test it now but thanks i will use this
Thank you.
Re: Remove player from vehicle -
Osviux - 29.05.2011
How to do this: when a player tries to get in a police vehicle, but he doesnt work as a police officer he just pulls the handle and thats it?
Re: Remove player from vehicle -
sleepysnowflake - 29.05.2011
When player trys to get in the vehicle, get player team, if he is not in the team cops, lock the vehicle.
This forum requires that you wait 120 seconds between posts. Please try again in 26 seconds.Again !?
Re: Remove player from vehicle -
Osviux - 29.05.2011
Oh yeah, you can use the features that were implented in 0.3c, thank you.
This forum requires that you wait 120 seconds between posts. Please try again in 74 seconds. || This is anoying :@
Re: Remove player from vehicle -
Markx - 29.05.2011
Quote:
Originally Posted by Berlovan
When player trys to get in the vehicle, get player team, if he is not in the team cops, lock the vehicle.
This forum requires that you wait 120 seconds between posts. Please try again in 26 seconds.Again !?
|
Wont work, you have to put it under OnPlayerKeyStateChange.