/aduty
#6

Quote:
Originally Posted by Sp3cter
Посмотреть сообщение
Thanks but i don't want in RCON , just from admin level 1 to 1338 and without using zcmd ...
What is your script admin variables? Do you have something like PlayerInfo[playerid][Level] / pInfo[playerid][Level] , etc ... ?

Here is the command in strcmp, placed it under OnPlayerCommandText:

pawn Код:
if (strcmp("/duty", cmdtext, true, 5) == 0)
{
    // if the player isnt logged into rcon , it will send the below message (change it to your desire)
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Invalid Command.  Type /commands For A List Of Commands.");

    if(OnDuty[playerid] == 0)
    {
        GameTextForPlayer(playerid,"~g~ on duty");

        SetPlayerSkin(playerid,skinid); // set your desired skin here

        SetPlayerHealth(playerid,100000);

        GivePlayerWeapon(playerid,38,133337);

        OnDuty[playerid] = 1;
    }
    else
    {
        GameTextForPlayer(playerid,"~r~ off duty");
        SetPlayerSkin(playerid,skinid); // set your desired skin here

        SetPlayerHealth(playerid,100);

        ResetPlayerWeapons(playerid);

        OnDuty[playerid] = 0;
    }
    return 1;
}
Reply


Messages In This Thread
/aduty - by Sp3cter - 10.08.2012, 16:47
Re: /aduty - by kbalor - 10.08.2012, 16:52
Re: /aduty - by grand.Theft.Otto - 10.08.2012, 16:57
Re: /aduty - by Sp3cter - 10.08.2012, 17:00
Re: /aduty - by kbalor - 10.08.2012, 17:01
Re: /aduty - by grand.Theft.Otto - 10.08.2012, 17:11
Re: /aduty - by Sp3cter - 10.08.2012, 17:14
Re: /aduty - by grand.Theft.Otto - 10.08.2012, 17:22
Re: /aduty - by Sp3cter - 10.08.2012, 17:26
Re: /aduty - by grand.Theft.Otto - 10.08.2012, 17:36
Re: /aduty - by Sp3cter - 10.08.2012, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)