31.05.2013, 11:59
Hello guys!
Can someone give me a filescript for an administrator rank?
LIKE THIS.
Here is my CMD:aduty...I want the tag turned on when an administrator go On Duty (Saing: >>Administrator On-Duty<<)
I want this tag for Admin Level 2,3,4,1337,1338,99998,99999
Post the FileScript on a comment
Thank you
Can someone give me a filescript for an administrator rank?
LIKE THIS.
Here is my CMD:aduty...I want the tag turned on when an administrator go On Duty (Saing: >>Administrator On-Duty<<)
I want this tag for Admin Level 2,3,4,1337,1338,99998,99999
Код:
CMD:aduty(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "** This is an admin only command!"); if(PlayerInfo[playerid][pAdminDuty] == 0) { SendClientMessageEx(playerid, COLOR_YELLOW, "{FFFFFF} ** You are now on administrative duty! Remember to check /reports!"); PlayerInfo[playerid][pAdminDuty] = 1; SetPlayerHealth(playerid, 100000); SetPlayerArmour(playerid, 100000); PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, 217); PlayerInfo[playerid][pModel] = 217; if(PlayerInfo[playerid][pAdmin] == 1) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 2) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 3) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 4) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 1337) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 1338) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 99998) { SetPlayerColor(playerid,COLOR_YELLOW); } if(PlayerInfo[playerid][pAdmin] == 99999) { SetPlayerColor(playerid,COLOR_YELLOW); } new string[256]; format(string, sizeof(string), ""OFICIAL_COLOR"*Voltage-Gaming-Roleplay* {FFFFFF}%s {32CD32}Its in admin service {00AFA8}to provide support. (/report for assistance)", GetPlayerNameEx(playerid)); SendClientMessageToAllEx(COLOR_RED, string); } else { new string[256]; format(string, sizeof(string), ""OFICIAL_COLOR"*Voltage-Gaming-Roleplay* {FFFFFF}%s {FF0000}Its no more in admin service {00AFA8}and now its in Role!", GetPlayerNameEx(playerid)); SendClientMessageToAllEx(COLOR_RED, string); SetPlayerColor(playerid, TEAM_HIT_COLOR); SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); PlayerInfo[playerid][pAdminDuty] = 0; } return 1; }
Post the FileScript on a comment
Thank you