SA-MP Forums Archive
helper names - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: helper names (/showthread.php?tid=503450)



helper names - AhmedMohamed - 29.03.2014

how to make names to helper level 1 , 2?
pawn Код:
PlayerInfo[playerb][pHelper] = 1; //Junior
PlayerInfo[playerb][pHelper] = 2; //senior



Re: helper names - AhmedMohamed - 29.03.2014

bumb


Re : helper names - samp_boy - 29.03.2014

i dont know what you try to say ...


Re: helper names - Loot - 29.03.2014

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



Re: helper names - MBilal - 29.03.2014

can you explain what you want ?


Re: helper names - AhmedMohamed - 29.03.2014

Loot Rep+


Re: helper names - AhmedMohamed - 29.03.2014

can i know what is the 10 behind the name??
pawn Код:
new name[10]//<<<< this ten



Re: helper names - DerickClark - 29.03.2014

Quote:
Originally Posted by AhmedMohamed
Посмотреть сообщение
can i know what is the 10 behind the name??
pawn Код:
new name[10]//<<<< this ten
That mean sizes of the names. Like if you don't have enough sizes.
this what you get.
Te

Full size
Test