Respawn Admin -
earlybird325 - 25.06.2014
Код:
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.
Re: Respawn Admin -
earlybird325 - 25.06.2014
Any help please?
Re : Respawn Admin -
Clad - 25.06.2014
What do you really need ?
Re: Respawn Admin -
earlybird325 - 25.06.2014
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.
Re: Respawn Admin -
earlybird325 - 26.06.2014
any help?
Re: Respawn Admin -
earlybird325 - 26.06.2014
Anybody? I really need this.
Re: Respawn Admin -
earlybird325 - 29.06.2014
Quote:
Originally Posted by earlybird325
Anybody? I really need this.
|
please
Re: Respawn Admin -
JessThompson - 29.06.2014
Send me your skype and i will help you
Re: Respawn Admin -
earlybird325 - 08.07.2014
I do not have skype. Can anyone else help?
Re: Respawn Admin -
Abagail - 08.07.2014
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);