[HELP] Problem with a cmd
#1

I just got help with a cmd /pullover, and... well it works but when I choose my police team and types /pullover it says "You are not a Police Officer"...
I have maked every cop skin in team 9, it looks like this... one of the skins:

Код:
	  case 34:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Police Officers",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,1526.7371,-1677.8799,5.8906);
				SetPlayerFacingAngle(playerid,271.5051);
				SetPlayerCameraPos(playerid,1531.2161,-1677.8109,5.8906);
				SetPlayerCameraLookAt(playerid,1526.7371,-1677.8799,5.8906);
				SetPlayerColor(playerid,0x0000BBAA);
				SetPlayerTeam(playerid,9);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
And the /pullover cmd looks like:

Код:
	if(!strcmp(cmdtext, "/pullover", true, 9))
	{
 		if(GetPlayerTeam(playerid) != 9) return SendClientMessage(playerid, 0xFF0000AA, "You are not a Police Officer.");
		new string[128];
		new adminname[MAX_PLAYER_NAME];
		GetPlayerName(playerid,adminname,sizeof(adminname));
 		format(string, sizeof(string),"Officer %s says Pull Over Now!",adminname);
		SendClientMessageToAll(0x0000BBAA, string);
		return 1;
	}
}
What is wrong?
Reply
#2

Any ideas?
Reply
#3

Use gTeam, I don't think SetPlayerteam works...
Reply
#4

pawn Код:
if(GetPlayerTeam(playerid) != 9) return SendClientMessage(playerid, 0xFF0000AA, "You are not a Police Officer.");
I am a real n00b but, For me it looks like, If player is in Team 9, it says that you are not a police officer..... I cant help you more xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)