[Help] /Gag system few more
#6

Well actually your badge cmd works just fine, just change it's name to duty
PHP код:
command(dutyplayeridparams[])
{
    if(
Player[playerid][Group] >= 1)
    {
        if(
Groups[Player[playerid][Group]][CommandTypes] == || Groups[Player[playerid][Group]][CommandTypes] == 4)
        {
            if(
Player[playerid][CopDuty] == 0)
            {
                
SetPlayerColor(playeridGroups[Player[playerid][Group]][GroupColour] * 256 255);
                
SendClientMessage(playeridWHITE"You have attached your badge, and are now being identified as on duty.");
                
Player[playerid][CopDuty] = 1;
            }
            else
            {
                
SetPlayerColor(playerid0xFFFFFFFF);
                
SendClientMessage(playeridWHITE"You have deattached your badge, and are now being identified as off duty.");
                
Player[playerid][CopDuty] = 0;
            }
        }
    }
    return 
1;

for the dutybelt cmd
PHP код:
    if(Player[playerid][CopDuty] == 1
{
GivePlayerWeapon(playerid24100); //desert eagle
GivePlayerWeapon(playerid2550); //shotgun
GivePlayerWeapon(playerid29200); //mp5
GivePlayerWeapon(playerid31); //nitestick
GivePlayerWeapon(playerid41400); //spray can

just put this under your dutybelt, after that an officer needs to /duty to get his duty status, and then needs to /dutybelt to get his weapons
is this the same thing you want ?
if you want your /duty cmd to give those guns too, just put the same code under
SendClientMessage(playerid, WHITE, "You have attached your badge, and are now being identified as on duty.");
in your duty command
Reply


Messages In This Thread
[Help] /Gag system /badge /tazer - by BigGreen - 02.10.2015, 05:15
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 10:46
Re: [Help] /Gag system few more - by PrO.GameR - 02.10.2015, 11:20
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 11:30
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 22:20
Re: [Help] /Gag system few more - by PrO.GameR - 03.10.2015, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)