13.05.2010, 22:51
One common rule, don't become cheeky when asking for help.
Remember that next time you do.
Not gonna put this into code for you - that's your job - but you could do the following (I am only giving a suggestion for the exact code you have):
First if-clause checking whether pAdmin is greater than 0, but smaller than two -> throw the lines for Admin Level 1 in there.
Second if-clause checking whether pAdmin is greater than one but smaller than three -> throw the lines for Admin Level 2 in there.
And so on.
Also note that everyone will get the first SendClientMessage the way your code is right now:
Another general advice:
Switch to dcmd/zcmd.
And one more to end with:
Completely recode this command and make it more dynamic.
Remember that next time you do.
Not gonna put this into code for you - that's your job - but you could do the following (I am only giving a suggestion for the exact code you have):
First if-clause checking whether pAdmin is greater than 0, but smaller than two -> throw the lines for Admin Level 1 in there.
Second if-clause checking whether pAdmin is greater than one but smaller than three -> throw the lines for Admin Level 2 in there.
And so on.
Also note that everyone will get the first SendClientMessage the way your code is right now:
Код:
SendClientMessage(playerid, COLOR_RED,"*****************************************************************************************************************************");
Switch to dcmd/zcmd.
And one more to end with:
Completely recode this command and make it more dynamic.