Scripting Help
#4

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Have like:

pawn Код:
if(PlayerInfo[para1][pAdmin] < level)
{
    format(string, sizeof(string), "   You have been demoted to a level %d admin by %s.", level, sendername);
}
if(PlayerInfo[para1][pAdmin] > level)
{
    format(string, sizeof(string), "   You have been promoted to a level %d admin by %s.", level, sendername);
}
if(PlayerInfo[para1][pAdmin] == 0)
{
    format(string, sizeof(string), "   Your admin rights have been removed by %s.", level, sendername);
}
//Send the string here
If you get my drift. I don't know if I done the maths right? But you should know what I mean...
Yeah your 'maths' if we can even call it that is a bit off. The players current level is stored in the variable pAdmin, therefore if pAdmin is greater than level, it means the admin is being demoted.
Reply


Messages In This Thread
Scripting Help - by Vincent_Johnson - 26.09.2011, 05:04
Re: Scripting Help - by Yamoo - 26.09.2011, 05:09
Re: Scripting Help - by Jack_Leslie - 26.09.2011, 05:17
Re: Scripting Help - by Ensconce - 26.09.2011, 06:02
Re: Scripting Help - by Vincent_Johnson - 28.09.2011, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)