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.