20.09.2013, 10:52
Bug, seriously ?
OnPlayerStateChange is called when a player changes his state, vehicle to vehicle is no state change.
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
}