Quote:
Originally Posted by Lordz™
The mistake you done is that, you've scripted the command restricted to the players who are in that team.
pawn Код:
CMD:rcsd(playerid, params[]) { if(PlayerInfo[playerid][pTeam] == 1) return SendClientMessage(playerid, white, "You are not apart of the Red County Sheriff's Department!"); //You're restricting the team here. if(IsPlayerInRangeOfPoint(playerid, 5.0, 1799.37, -163.40, 4.10)) return SendClientMessage(playerid,white,"You are not at the lockers!"); { ShowPlayerDialog(playerid, DIALOG_RCSD, DIALOG_STYLE_LIST, "RCSD Locker", "Equipment\nUniform", "Select","Cancel"); } return 1; }
Correct:
pawn Код:
CMD:rcsd(playerid, params[]) { if(PlayerInfo[playerid][pTeam] == 1) { if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1799.37, -163.40, 4.10)) return SendClientMessage(playerid,white,"You are not at the lockers!"); ShowPlayerDialog(playerid, DIALOG_RCSD, DIALOG_STYLE_LIST, "RCSD Locker", "Equipment\nUniform", "Select","Cancel"); } else return SendClientMessage(playerid, white, "You are not apart of the Red County Sheriff's Department!"); return 1; }
|
Thankyou, im gonna try that out!
EDIT: Well it worked, thanks alot bro.