Faction chat - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Faction chat (
/showthread.php?tid=264736)
Faction chat -
bartje01 - 27.06.2011
Hey guys. I'm now having a admin chat. I also want to make a admin chat.
This is how I send an admin chat message.
pawn Код:
SendAdminMessage(color, text[])
{
foreach(Player, i)
{
if (PlayerInfo[i][pAdminLevel] >= 1)
{
SendClientMessage(i, color, text);
}
}
return 0;
}
How will I do that with this variable?
pFaction[60];
I first have to get the faction name.
This is how I get a faction name:
pawn Код:
GetPlayerName(playerid,Name,sizeof(Name));
format(file, sizeof(file), SERVER_USER_FILE, Name);
format(String,sizeof(String),"%s",dini_Get(file, "Faction"),Name);
How will I make a faction chat for that?
Please help me I want it like the SendAdminMessage.