Hey, I am wanting to make a Ranking system so say a Helper talked in /n it would be
pawn Код:
if(!strcmp(cmdtext,"/n",true,2))
{
if(PlayerInfo[playerid][Newbie] ==0) return SendClientMessage(playerid,0xffffffaa,"You are not a newbie"); //checking if a player is not a noob, change it to your variable if any
if(NewbieChat == false) return SendClientMessage(playerid, COLOR_ADMIN, "Newbie chat is disabled!");
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid,name,sizeof(name));
for(new i=0; i< MAX_PLAYERS;i++)
{
if(PlayerInfo[i][Newbie] ==1)
{
format(string,sizeof(string),"[NewbieChat] %s: %s",name,cmdtext[3]);
SendClientMessage(i,COLOR_GREEN,string);
}
}
return 1;
}