29.03.2014, 17:42
Just create a function to return a helper rank name depending on his helper level as below.
pawn Код:
stock GetHelperName(playerid)
{
new name[10];
switch(PlayerInfo[playerid][pHelper])
{
case 1: name = "Junior";
case 2: name = "Senior";
case 3: name = "Master";
// ... etc
}
return name;
}
// example to use:
new string[64];
format(string, sizeof(string), "%s %s has joined the server", GetHelperName(playerid), GetName(playerid));