How to Convert This?? (rep++++)
#4

pawn Код:
// InOnPlayerCommandText
dcmd(offduty, 7, cmdtext);
dcmd(onduty,  6, cmdtext);
   


// Any part of script
dcmd_offduty(playerid, params[]){
{
    if(PlayerInfo[playerid][Level] >= 2)
    {
        CMDMessageToAdmins(playerid,"Now Off Duty");   GetPlayerName(playerid, adminname, sizeof(adminname));
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1)
            {
                ResetPlayerWeapons(playerid);
                ForceClassSelection(playerid);
                SetPlayerHealth(playerid,0);
                format(string,256,"Administrator %s Has End With His Admin Duty",adminname);
                SendClientMessage(i,pink,string);
            }
        }
    }
    else
    {
        SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");   }
        return 1;
    }
    return true;
}


dcmd_onduty(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >= 2)
    {
        CMDMessageToAdmins(playerid,"Now On Duty");   GetPlayerName(playerid, adminname, sizeof(adminname));
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1)
            {
                SetPlayerSkin(playerid,217); GivePlayerWeapon(playerid,38,500000); SetPlayerHealth(playerid,100000); SetPlayerColor(playerid,pink); format(string,256,"Administrator %s Has Now On Admin Duty",adminname);  SendClientMessage(i,pink,string);   }
            }
        }
        else
        {
            SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");   }
            return 1;
        }
    }
    return true;

}
Reply


Messages In This Thread
How to Convert This?? (rep++++) - by iOmar - 11.04.2012, 08:34
Re: How to Convert This?? (rep++++) - by Tee - 11.04.2012, 08:39
Re: How to Convert This?? (rep++++) - by Derek_Westbrook - 11.04.2012, 08:39
Re: How to Convert This?? (rep++++) - by zSuYaNw - 11.04.2012, 08:39
Re: How to Convert This?? (rep++++) - by ProdrifterX - 11.04.2012, 08:43
Re: How to Convert This?? (rep++++) - by iOmar - 11.04.2012, 08:47
Re: How to Convert This?? (rep++++) - by sanjil_rijal - 11.04.2012, 11:43
Re: How to Convert This?? (rep++++) - by iOmar - 11.04.2012, 12:36

Forum Jump:


Users browsing this thread: 2 Guest(s)