17.08.2012, 11:26
pawn Код:
CMD:aduty(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
return 1;
}
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
SetPlayerColor(playerid,COLOR_ORANGE);
GivePlayerValidWeapon(playerid, 26, 99999);//sawn-off
GivePlayerValidWeapon(playerid, 32, 99999);//tec9
GivePlayerValidWeapon(playerid, 8, 99999);//katana
GivePlayerValidWeapon(playerid, 22, 99999);//colt45
GivePlayerValidWeapon(playerid, 27, 99999);//combat shotgun
GivePlayerValidWeapon(playerid, 31, 99999);//m4
GivePlayerValidWeapon(playerid, 29, 99999);//mp5
GivePlayerValidWeapon(playerid, 24, 99999);//deagle
GivePlayerValidWeapon(playerid, 18, 99999);//molotov
GivePlayerValidWeapon(playerid, 34, 99999);//sniper
GivePlayerValidWeapon(playerid, 39, 99999);//satchels
GivePlayerValidWeapon(playerid, 36, 99999);//heatseeker
GivePlayerValidWeapon(playerid, 37, 99999);//fire
GivePlayerValidWeapon(playerid, 38, 99999);//minigun
{
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Administrator %s is now on duty (/report For Assistance).", pname);
SendClientMessageToAll( COLOR_GREEN, string);
return 1;
}
}
CMD:aoffduty(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
return 1;
}
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerToTeamColor(playerid);
ResetPlayerWeaponsEx(playerid);
{
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Administrator %s is now off duty (Let The Admin Roleplay).", pname);
SendClientMessageToAll( COLOR_GREEN, string);
return 1;
}
}
what is this working?