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
#2

Any help please?
Reply
#3

What do you really need ?
Reply
#4

My current admin duty sometimes bugs the player, where they get stuck, I want to make it where the admin respawns like in the video between 0:00 and 0:05. I've tried numerous functions and none of them work. I've seen this on a few sa-mp servers already.
Reply
#5

any help?
Reply
#6

Anybody? I really need this.
Reply
#7

Quote:
Originally Posted by earlybird325
Посмотреть сообщение
Anybody? I really need this.
please
Reply
#8

Send me your skype and i will help you
Reply
#9

I do not have skype. Can anyone else help?
Reply
#10

Maybe something like this?

TogglePlayerControllable(playerid, 0);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z-10.0);
SetPlayerPos(playerid, X, Y, Z+0.5);
TogglePlayerControllable(playerid, 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)