05.08.2011, 07:46
i don't actually seen anything wrong in the server but i would actually use this code.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(gTeam[playerid] == TEAM_ZOMBIE) {
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == CARID)
{
SetPlayerHealth(playerid, 0);
DestroyVehicle(vehicleid);
}
}
}
return 1;
}