if(strcmp(cmd, "/n", true) == 0 || strcmp(cmd, "/nouveau", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerConnected(playerid) || PlayerInfo[playerid][pAdmin] == 1338)
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vous devez d'abord vous identifiez !");
return 1;
}
if(PlayerInfo[playerid][pLevel] > 2 || PlayerInfo[playerid][pAdmin] == 1338)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Chat réservé au nouveau joueur qui ont un niveau infèrieur à 3 !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Vous ne pouvez plus parler, Vous avez était silencez !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/n)ouveau [Chat des Nouveau]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
format(string, sizeof(string), "fondateur: %s",result);
OOCOff(COLOR_YELLOW, string);
printf("%s", string);
}
format(string, sizeof(string), "Debutant %s: %s *" , sendername, result);
OOCOff(COLOR_GREEN,string);
printf("%s", string);
}
}
return 1;
}
marche toujours pas bizzard