22.07.2012, 07:23
You should add a debug message to see if it is passing through the if statement.
Like so:
if it does work, try this method, I usually did this when I wanted to avoid someone getting in a vehicle:
Actually, try what he stated below, I didn't think about that...
Like so:
pawn Код:
else if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1)
{
printf("IsLeoVehicle passed");
//Sends a message to console saying IsLeoVehicle passed
pawn Код:
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
//To...
ClearAnimations(playerid);