How to make myself a police officer?
#1

Topic says it all, I've been looking all over.. I can't find it, please help.
Reply
#2

And you're using..? (which gamemode, filterscript)
Next time don't open topic if you won't give more information.
Reply
#3

Well..I Use This Code In My Server:

Код:
   	if (strcmp("/beacop", cmdtext, true, 10) == 0)
	{
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "**%s : Takes Out His Police Uniform...", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
	  LimitGlobalChatRadius(30);
		SetPlayerSkin( playerid, 71 );
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "**%s : Puts hes uniform on!", pName);
    format(string, sizeof(string), "**%s Is Now A Police Officer !!", pName);
    SendClientMessageToAll(0x0000BBAA, string);
	  LimitGlobalChatRadius(30);
		SetPlayerSkin(playerid,280);
		SetPlayerColor(playerid,0x0000BBAA);
		GivePlayerWeapon(playerid,3);
		GivePlayerWeapon(playerid,29,9000);
		SetPlayerArmour(playerid,100);
		SetPlayerPos(playerid,1552.1587,-1675.7294,16);
		return 1;
		}
Hope That Helps man ^^
Reply
#4

This is what I'm using: http://forum.sa-mp.com/index.php?top...38.0;topicseen


and where do I add that code?
Reply
#5

The command to make yourself leader on that script is /makeleader <ID> <1> - 1 is for PD.
Reply
#6

Thanks, but it keeps saying I aint authorized to use the command in game.. even though it says I'm a level 3 admin. [ Logged in as one ]
Reply
#7

You need to be level 4, If you want to change it go into Find and search for

Код:
"/makeleader"
Then look for
pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 4)
And change the 4 to 3 or even lower if you want to.
Reply
#8

Quote:
Originally Posted by Jordan69
Ask in that topic next time.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)