SA-MP Forums Archive
Why this no work..? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why this no work..? (/showthread.php?tid=87180)



Why this no work..? - Khelif - 18.07.2009

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;
  }
}



Re: Why this no work..? - yom - 18.07.2009

There is a typo: oldinterior -> oldinteriorid


Re: Why this no work..? - Khelif - 18.07.2009

thats just an example -.-