11.06.2016, 12:32
hi , can someone tell me what could cause.. so if a player high jacks my car i want to lose job and vehicle to respawn .. and none of them work why??
PHP Code:
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
new veh = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pJob] == 20)
{
if(IsAFarmerCar(vehi))
{
SendClientMessage(playerid, COLOR_RED, "You exited the vehicle !");
SetVehicleToRespawn(veh);
printf("Testing");
}
}
}