OnPlayerStateChange don't called in vehicle
#7

Quote:
Originally Posted by d0
Посмотреть сообщение
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
}
Yes i use OnPlayerUpdate, sorry i thought is a bug because example OnPlayerKeyStateChange is called even if it's the same key but is not same callback yes...
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: 2 Guest(s)