CMD:ahelp
#1

Код:
CMD:ah(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1)
    {
    ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
    }
	if(PlayerInfo[playerid][pAdmin] < 2)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] < 3)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] < 4)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] < 5)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] < 6)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] < 7)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	return 1;
}
what's the problem? when i try cmd nothing show..
Reply
#2

Hello Its /acmds to Check All Cmds Admins Right ?

CMD:ac(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 2)
{
ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 3)
{
ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 4)
{
ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 5)
{
ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 6)
{
ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 7)
{
ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
return 1;
}

Try This
Reply
#3

yes..
Reply
#4

worked? +rep to me
Reply
#5

Код:
CMD:ah(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] > 1)
    {
    ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
    }
	if(PlayerInfo[playerid][pAdmin] > 2)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 3)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 4)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 5)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 6)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 7)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	return 1;
}
Credits: thegamer355
Reply
#6

Guys use else if, wtf?
Reply
#7

Quote:
Originally Posted by RedRex
Посмотреть сообщение
Hello Its /acmds to Check All Cmds Admins Right ?

CMD:ac(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 2)
{
ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 3)
{
ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 4)
{
ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 5)
{
ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 6)
{
ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
if(PlayerInfo[playerid][pAdmin] < 7)
{
ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
}
return 1;
}

Try This
Wrong..

Quote:
Originally Posted by Shadow5
Посмотреть сообщение
Код:
CMD:ah(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] > 1)
    {
    ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
    }
	if(PlayerInfo[playerid][pAdmin] > 2)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 3)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 4)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 5)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 6)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	if(PlayerInfo[playerid][pAdmin] > 7)
	{
	ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok","");
	}
	return 1;
}
Credits: thegamer355
Wrong..

Quote:
Originally Posted by [ND]xXZeusXx.
Посмотреть сообщение
Guys use else if, wtf?
Ikr..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)