Restricting Commands Error?
#1

I try to make a command so that only Team 1 (In this case the Red County Sheriff's Department) can use it, but when I do, I get in game and I type in the command, it comes up with "You are not apart of the Red County Sheriff's Department, i've checked the scriptfiles etc, my Team = 1. it should all be working but for some reason it doesn't. Please help me.
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!");
   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;
}
Reply


Messages In This Thread
Restricting Commands Error? - by Hereford - 16.12.2012, 05:44
Re: Restricting Commands Error? - by Lordzy - 16.12.2012, 05:51
Re: Restricting Commands Error? - by Hereford - 16.12.2012, 05:59
Re: Restricting Commands Error? - by Lordzy - 16.12.2012, 06:15

Forum Jump:


Users browsing this thread: 2 Guest(s)