Need help with ranks
#1

Hey guys i'm really in trouble here
So the problem:
First of all let me tell u all the ranks.Im using ladmin system.
Level 1 = Moderator
Level 2 = Master Moderator
Level 3 = Administrator
Level 4 = Head-Administrator
Level 5 = Owner/Co-Owner.

Now what i want is when i type this command.
Example
/c [my text here ex: hey]. Now what i want here is the it should check what level im if level 1 then moderator if level 2 then master moderator And goes like that to level 5 owner/co-owner.
like this. for ex i m level 5 then " Owner/Co-Owner Redbull[GD] Says Hey

So please help me guys i really want this script and urgently plz help
Thanks in advance
If u need any additional information then tell me



Код:
dcmd_c(playerid,params[]) {
	 #pragma unused params
	 if(PlayerInfo[playerid][Level] >= 5) {
		 if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /c [text]");
		 new string [128]; format (string, sizeof(string), "**Owner %s: %s", PlayerName2(playerid), params[0] );
		 return SendClientMessageToAll(COLOR_PINK,string);
	 } else return SendClientMessage(playerid,red,"ERROR: You need to be level 5 to use this command");
}
Reply


Messages In This Thread
Need help with ranks - by RedbullGD - 09.04.2014, 17:17
Re: Need help with ranks - by arakuta - 09.04.2014, 17:32
Re: Need help with ranks - by Bingo - 09.04.2014, 17:47
Re: Need help with ranks - by arakuta - 09.04.2014, 18:10
Re: Need help with ranks - by Bingo - 09.04.2014, 18:17
Re: Need help with ranks - by RedbullGD - 09.04.2014, 19:15
Re: Need help with ranks - by Bingo - 09.04.2014, 19:22
Re: Need help with ranks - by RedbullGD - 09.04.2014, 19:40
Re: Need help with ranks - by Bingo - 09.04.2014, 19:41
Re: Need help with ranks - by RedbullGD - 11.04.2014, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)