21.08.2012, 21:26
Well I have this code:
The first thing that I want is that the Admin won't be banned for the Anti-Cheat-System.
Because the minigun isn't allowed.
I want to do the minigun allowed for Admins On duty mode.
How I can do it?
Please tell me!
+rep!
pawn Код:
dcmd_adminduty(playerid,params[])
{
#pragma unused params
if (AccInfo[playerid][Level] >= 2)
{
if(AccInfo[playerid][OnDuty] == 0)
{
AccInfo[playerid][OnDuty] = 1;
SetPlayerHealth(playerid,1000000);
GivePlayerWeapon(playerid,38,-500000);
SetPlayerColor(playerid, pink);
SetPlayerSkin(playerid, 217);
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" is now on Admin duty mode", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else
{
AccInfo[playerid][OnDuty] = 0;
SetPlayerHealth(playerid,-0);
return SendClientMessage(playerid,orange,"You aren't on Admin duty mode");
}
}
return ErrorMessages(playerid, 5);
}
Because the minigun isn't allowed.
I want to do the minigun allowed for Admins On duty mode.
How I can do it?
Please tell me!
+rep!