24.05.2009, 10:24
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == LVPD) { switch(row) { case 0: { for(new i=0; i < MAX_PLAYERS; i++) { gTeam[i] = TEAM_LVPD; SendClientMessage(playerid,COLOR_BLUE,"You have been set as a police officer"); SetPlayerSkin(playerid,280); TogglePlayerControllable(playerid,true); return 1; } } case 1: { if(gTeam[playerid] == TEAM_CIVIL) { SendClientMessage(playerid,COLOR_RED2,"You are not a police officer!"); ShowMenuForPlayer(LVPD,playerid); return 1; } else { for(new i=0; i < MAX_PLAYERS; i++) { gTeam[i] = TEAM_CIVIL; SendClientMessage(playerid,COLOR_BLUE,"You have resigned as police officer"); SetPlayerSkin(playerid,VorigeSkin); TogglePlayerControllable(playerid,true); return 1; } } } } } return 1; }
The Problem remains the same : When one player request, everyone turns into lvpd, and idem with resign. I tried withouth the for loop and with [playerid] but nothing seems to do the job? :O any peeps had experience with this?
Greets Rizzy
EDIT: Is this double post? srry for that