onPlayerEnterVehicle problem
#2

You should add a debug message to see if it is passing through the if statement.

Like so:

pawn Код:
else if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1)
{
     printf("IsLeoVehicle passed");
//Sends a message to console saying IsLeoVehicle passed
if it does work, try this method, I usually did this when I wanted to avoid someone getting in a vehicle:

pawn Код:
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);

//To...

ClearAnimations(playerid);
Actually, try what he stated below, I didn't think about that...
Reply


Messages In This Thread
onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 07:20
Re: onPlayerEnterVehicle problem - by Kindred - 22.07.2012, 07:23
Re: onPlayerEnterVehicle problem - by Cjgogo - 22.07.2012, 07:24
Re: onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 07:33
Re: onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 07:54
Re: onPlayerEnterVehicle problem - by Kindred - 22.07.2012, 07:58
Re: onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 08:07
Re: onPlayerEnterVehicle problem - by Kindred - 22.07.2012, 08:34
Re: onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 08:38
Re: onPlayerEnterVehicle problem - by oblexive - 22.07.2012, 12:05

Forum Jump:


Users browsing this thread: 2 Guest(s)