Ou tu peut modifier une faction qui existe déja (genre Incrusteur, id 11 dans LARP) :
Les commandes tu ajoute par exemple à la commande /radio :
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "[Radio] %s: %s, terminé. ", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(11, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
Le nom tu le change dans les lignes 9581 + 28743 + 28811 + 29245 , les noms des grades dans le 9983.
Je pense avoir t'aidé :-\
Bonne nuit..
Sunaxx