13.08.2015, 10:32
i have a problem with OnPayerStateChange callback when someone drives hunter nothing happens how to fix that
nothing happens when someone got the hunter
plz help and thnx
sorry for my bad english
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new string[128];
new carid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(carid == 425 && GetPVarInt(playerid, "_Stunt") == 1)
{
format(string,sizeof(string),"* {FFFFFF}%s {F68600}Has Got the hunter ", PlayerName(playerid));
SendClientMessageToAll(COLOR_ADMIN, string);
}
return 1;
}
plz help and thnx
sorry for my bad english