Remove player from vehicle
#1

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

Click me !?
Reply
#3

Wait... What's wrong with RemovePlayerFromVehicle(playerid); ?
Reply
#4

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

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

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
pawn Код:
Code...
Is this good enough ? The car will stop.
Hmm, I can't test it now but thanks i will use this Thank you.
Reply
#7

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?
Reply
#8

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 !?
Reply
#9

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 :@
Reply
#10

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


Forum Jump:


Users browsing this thread: 5 Guest(s)