31.05.2009, 13:48
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:
And the /pullover cmd looks like:
What is wrong?
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);
}
}
Код:
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;
}
}

