19.05.2009, 18:15
hi,
it doesnґt work,can anyone help me ,please?
EDIT: 0 = team_army / 1 = team_police
Код:
public OnPlayerDeath(playerid, killerid, reason) { new Lv,pName[MAX_PLAYER_NAME]; GetPlayerName(killerid, pName, sizeof(pName)); Lv = GetPlayerWantedLevel(killerid); if(killerid == INVALID_PLAYER_ID) { SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); } else if(gTeam[killerid] == 0 || gTeam[killerid] == 1) { SendDeathMessage(killerid,playerid,reason); } else { Lv+=1; SetPlayerWantedLevel(killerid,Lv); SendDeathMessage(killerid,playerid,reason); } return 1; }
EDIT: 0 = team_army / 1 = team_police