Why this no work..?
#1

when players enter interior 4 they cant hurt each other, but when they get out they still can't... why?
here's my pawn code
Код:
#define INTERIOR_TEAM 121
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
  if(newinteriorid == 4) {
    SetPlayerTeam(playerid, INTERIOR_TEAM);
    return 1;
  }
  else if(newinteriorid == 0 && oldinteriorid == 4) { //fixed
     SetPlayerTeam(playerid, playerid);
     return 1;
  }
}
Reply


Messages In This Thread
Why this no work..? - by Khelif - 18.07.2009, 19:44
Re: Why this no work..? - by yom - 18.07.2009, 19:50
Re: Why this no work..? - by Khelif - 18.07.2009, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)