29.09.2013, 23:32
I want it if their admin level 1 - Moderator, Level 2 - Administrator, Level 3 - Junior Admin Level 4 - Senior Admin, Level 5 - Head Admin, Level 6 - Mapper, Level 7 - Scripter, Level 8 - Owner
And i want a cmd:admins command with the ranks above.
And how do i put admin rank in this?
And i want a cmd:admins command with the ranks above.
And how do i put admin rank in this?
Код:
CMD:givecash(playerid, params[]) { new id, money, string[128], string2[128],plName[24],aName[24]; GetPlayerName(playerid,aName,sizeof(aName)); GetPlayerName(id,plName,sizeof(plName)); if(PlayerInfo[playerid][Level] >= 2) { if(sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givecash [ID] [amount]"); else GivePlayerMoney(id,money); CMDMessageToAdmins(playerid,"GIVECASH"); PlayerPlaySound(id,1057,0.0,0.0,0.0); format(string, sizeof(string),"You have give player %s %d$!", plName, money); SendClientMessage(playerid, yellow, string); format(string2 ,sizeof(string2),"Administrator %s has given you %d$!", aName, money); SendClientMessage(id, blue, string2); } return 1; }