helper names
#4

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));
Reply


Messages In This Thread
helper names - by AhmedMohamed - 29.03.2014, 16:40
Re: helper names - by AhmedMohamed - 29.03.2014, 17:06
Re : helper names - by samp_boy - 29.03.2014, 17:16
Re: helper names - by Loot - 29.03.2014, 17:42
Re: helper names - by MBilal - 29.03.2014, 17:50
Re: helper names - by AhmedMohamed - 29.03.2014, 17:54
Re: helper names - by AhmedMohamed - 29.03.2014, 17:56
Re: helper names - by DerickClark - 29.03.2014, 18:17

Forum Jump:


Users browsing this thread: 2 Guest(s)