What's wrong with IsPlayerInVehicle(playerid,vehicleid);
#1

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER){
        if(IsPlayerInVehicle(playerid,482)){
            print("player in burrito");
            TogglePlayerDynamicCP(playerid,businesscp_id,1);
        }
    }
    return 1;
}
I don't understand why the instruction if with this function doesn't works, is very strange, if i remove it, all works fine, the CP toggle on for player, but when i add this instruction, it considers as if im not in this vehicle id.. why?
Reply


Messages In This Thread
What's wrong with IsPlayerInVehicle(playerid,vehicleid); - by Galletziz - 11.12.2014, 10:40
Re: What's wrong with IsPlayerInVehicle(playerid,vehicleid); - by Vince - 11.12.2014, 10:44
Re: What's wrong with IsPlayerInVehicle(playerid,vehicleid); - by Galletziz - 11.12.2014, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)