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
#2

There is a typo: oldinterior -> oldinteriorid
Reply
#3

thats just an example -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)