16.12.2012, 05:51
The mistake you done is that, you've scripted the command restricted to the players who are in that team.
Correct:
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;
}
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;
}