27.01.2013, 17:12
Hi,
I want to check the player admin with a simple function, I tried it:
After that, I might use this function by this way:
It gives me errors, and I don't know if it will work.. Sorry I'm newbie, and sorry for my bad english.
I want to check the player admin with a simple function, I tried it:
PHP код:
stock Level(playerid)
{
new level;
switch(level)
{
case 0: "Newb";
case 1: "Operator";
case 2: "Moderator";
case 3: "Junior Administrator";
case 4: "Senior Administrator";
case 5: "Head Administrator":
case 6: "Hero Administrator";
case 7: "Community Owner";
}
}
PHP код:
format(string, sizeof(string), "Administrator %s, Level %s has ...", name, Level(playerid);
SendClientMessage(playerid, -1, string);