OnPlayerStateChange don't called in vehicle
#2

Bug, seriously ?

OnPlayerStateChange is called when a player changes his state, vehicle to vehicle is no state change.


pawn Код:
new gPlayerVeh[playerid];
public OnPlayerUpdate(playerid)
{
  new vehID = GetPlayerVehicleID(playerid);
  if(vehID != gPlayerVeh[playerid])
  {
    OnPlayerVehicleChange(playerid, vehid);
    gPlayerVeh[playerid] = vehID;
  }
}

public OnPlayerVehicleChange(playerid, vehicleid)
{
// your anti cheat
}
Reply


Messages In This Thread
OnPlayerStateChange don't called in vehicle - by Kyra - 20.09.2013, 09:43
Re: OnPlayerStateChange don't called in vehicle - by d0 - 20.09.2013, 10:52
Re: OnPlayerStateChange don't called in vehicle - by JernejL - 20.09.2013, 10:54
Re: OnPlayerStateChange don't called in vehicle - by Jay_ - 20.09.2013, 10:54
Re: OnPlayerStateChange don't called in vehicle - by RayW - 20.09.2013, 11:00
Re: OnPlayerStateChange don't called in vehicle - by dugi - 20.09.2013, 11:03
Re: OnPlayerStateChange don't called in vehicle - by Kyra - 20.09.2013, 11:10
Re: OnPlayerStateChange don't called in vehicle - by Basssiiie - 20.09.2013, 22:57

Forum Jump:


Users browsing this thread: 3 Guest(s)