Respawn Admin
#1

Код:
dcmd_aduty(playerid, params[])
{
        #pragma unused params
        if(LoginCheck[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "* You Must Be Logged To Use Any Command!");
	if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
        if(aduty[playerid] == 0)
        {
        new Float:dutyhp;
        new Float:dutyarmour;
	pDutyHealth[playerid] = GetPlayerHealth(playerid, dutyhp);
        pDutyArmour[playerid] = GetPlayerArmour(playerid, dutyarmour);
        SCM(playerid, COLOR_HOTPINK,"* You Have Gone On Duty.");
	//SetPlayerAttachedObject(playerid, 3, 373, 1, 0.286006, -0.034657, -0.158132, 67.128456, 21.916156, 33.972290, 1.000000, 1.000000, 1.000000); // armor
	SetPlayerArmour(playerid, 100000);
        SetPlayerHealth(playerid, 100000);
        GivePlayerWeapon(playerid, 9, 9999999);
        GivePlayerWeapon(playerid, 24, 9999999);
        GivePlayerWeapon(playerid, 26, 9999999);
        GivePlayerWeapon(playerid, 28, 9999999);
        GivePlayerWeapon(playerid, 31, 9999999);
        GivePlayerWeapon(playerid, 26, 9999999);
	GivePlayerWeapon(playerid, 34, 9999999);
	GivePlayerWeapon(playerid, 38, 9999999);
        GivePlayerWeapon(playerid, 39, 9999999);
        GivePlayerWeapon(playerid, 40, 9999999);
	oldskin[playerid] = GetPlayerSkin(playerid);
  	new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
	SetPlayerPos(playerid, X, Y, Z+1);
	SetPlayerSkin(playerid, 294);
    	GameTextForPlayer(playerid, "~R~On ~R~Duty", 5000, 5);
    	SetPlayerColor(playerid, COLOR_ORANGE);
	aduty[playerid] =1;
        }
        else
        {
        SCM(playerid, COLOR_HOTPINK,"* You Have Gone Off Duty.");
        SetPlayerHealth(playerid, pDutyHealth[playerid]);
        SetPlayerArmour(playerid, pDutyArmour[playerid]);
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
	new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
	SetPlayerPos(playerid, X, Y, Z+1);
        SetPlayerSkin(playerid, oldskin[playerid]);
        aduty[playerid] =0;
        oldskin[playerid] = 1;
    	GameTextForPlayer(playerid, "~R~Off ~R~Duty", 5000, 5);
    	SetPlayerColor(playerid, COLOR_WHITE);
        }
        return 1;
}
How can I make it like this:
[ame]http://www.youtube.com/watch?v=LcdrNbb1dUU[/ame]
Sorry, admin abusing video, but i would like to know how to make it like this.
Reply


Messages In This Thread
Respawn Admin - by earlybird325 - 25.06.2014, 05:05
Re: Respawn Admin - by earlybird325 - 25.06.2014, 18:52
Re : Respawn Admin - by Clad - 25.06.2014, 19:00
Re: Respawn Admin - by earlybird325 - 25.06.2014, 19:06
Re: Respawn Admin - by earlybird325 - 26.06.2014, 02:20
Re: Respawn Admin - by earlybird325 - 26.06.2014, 19:14
Re: Respawn Admin - by earlybird325 - 29.06.2014, 02:29
Re: Respawn Admin - by JessThompson - 29.06.2014, 02:32
Re: Respawn Admin - by earlybird325 - 08.07.2014, 00:53
Re: Respawn Admin - by Abagail - 08.07.2014, 01:14

Forum Jump:


Users browsing this thread: 1 Guest(s)