SetPlayerTeam problem
#1

I have been doing little experiment with SetPlayerTeam function. when I enter interior 4, it should set me in team 189, but insted it sets me in team 255. same happens when I leave interior 4. please help
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {

  if(newinteriorid == 4) {
    new str[64];
    SetPlayerTeam(playerid, 189);
    format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid));
    SendClientMessage(playerid,WHITE,str);
    return 1;
  }
  if(newinteriorid == 0) {
    new str[64];
    SetPlayerTeam(playerid, playerid);
    format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid));
    SendClientMessage(playerid,WHITE,str);
    return 1;
  }
  return ;
}
Reply


Messages In This Thread
SetPlayerTeam problem - by Khelif - 27.07.2009, 11:12
Re: SetPlayerTeam problem - by Criss_Angel - 27.07.2009, 12:00
Re: SetPlayerTeam problem - by Khelif - 27.07.2009, 12:38
Re: SetPlayerTeam problem - by yezizhu - 27.07.2009, 12:58

Forum Jump:


Users browsing this thread: 2 Guest(s)