[HELP] A small problem
#1

Hello guys, I need a little help with this two commands, I'm trying to put rank and team to the commands, but this don't work.

Код:
if(strcmp(cmd, "/olspd", true) == 0)
	{
	  if(gTeam[playerid] == TEAM_LSPD)
	  {
	    if(PlayerInfo[playerid][PoliceRank] >= 1)
	    {
				MoveObject(olspd,246.411529,72.640029,1000.911437,4.0);
				return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, "	You are not authorized to use that command.");
			  return 1;
			}
		}
		else
		{
		  SendClientMessage(playerid, COLOR_GREY, "	You are not a Police Officer.");
 		}
	}
Код:
if(strcmp(cmd, "/clspd", true) == 0)
	{
	  if(gTeam[playerid] == TEAM_LSPD)
	  {
	    if(PlayerInfo[playerid][PoliceRank] >= 1)
	    {
				MoveObject(olspd,246.411529,72.640029,1003.640625,4.0);
				return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, "	You are not authorized to use that command.");
			  return 1;
			}
		}
		else
		{
		  SendClientMessage(playerid, COLOR_GREY, "	You are not a Police Officer.");
		  return 1;
		}
	}
Thanks
Reply


Messages In This Thread
[HELP] A small problem - by FreddeN - 04.02.2010, 21:47
Re: [HELP] A small problem - by nastoe - 04.02.2010, 21:48
Re: [HELP] A small problem - by FreddeN - 04.02.2010, 21:50
Re: [HELP] A small problem - by nastoe - 04.02.2010, 21:50
Re: [HELP] A small problem - by FreddeN - 04.02.2010, 22:03
Re: [HELP] A small problem - by FreddeN - 04.02.2010, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)