can i make different cmd ? (again)
#10

Quote:
Originally Posted by edwardluciano
Посмотреть сообщение
you can tell me something ?


Код:
if (!strcmp(text, "!level", true))
		{
	        if (PlayerInfo[playerid][pAdmin] >= 21 && PlayerInfo[playerid][pAdmin] <= 45)
			{
			    tmp = strtok(text, idx);
				if(!strlen(tmp))
				{
	    			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Usage: /level 1(Mode)/2(Admins)");
					SendClientMessage(playerid, COLOR_YELLOW2, "Function: Will see commands of specified level");
					return 0;
	 			}
	 			new selected = strval(tmp);
				if (selected == 1)
				{
					if (PlayerInfo[playerid][pAdmin] >= 21)
					{
		    			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "___________ |- Moderator -| ___________");
						SendClientMessage(playerid, COLOR_YELLOW2, "kick warn unwarn ban");
					}
					else
					{
		    			return 0;
					}

				}
				if (selected == 2)
				{
				    if (PlayerInfo[playerid][pAdmin] == 45)
					{
		    			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "___________ |- Administrator -| ___________");
		    			SendClientMessage(playerid, COLOR_YELLOW2,"All Mode Commands");
		    			SendClientMessage(playerid, COLOR_YELLOW2,"(veh)icle paycheck makeleader");
						
					}
					else
					{
	    				return 0;
					}
				}
			}
			else
			{
			    return 1;
			}
	        return 0;
     	}
when type !level 1 it not show command list it chat !level 1 normally

you can fix this thankyou for that
Did you put this under OnPlayerText or under OnPlayerCommandText? It should go under OnPlayerText.
Reply


Messages In This Thread
can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 13:16
Re: can i make different cmd ? (again) - by RajatPawar - 10.05.2013, 13:28
Re: can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 13:32
Re: can i make different cmd ? (again) - by [DOG]irinel1996 - 10.05.2013, 14:05
Re: can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 14:08
Re: can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 14:30
Re: can i make different cmd ? (again) - by [DOG]irinel1996 - 10.05.2013, 14:32
Re: can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 14:36
Re: can i make different cmd ? (again) - by edwardluciano - 10.05.2013, 14:56
Re: can i make different cmd ? (again) - by Da_Noob - 10.05.2013, 15:55

Forum Jump:


Users browsing this thread: 3 Guest(s)