12.06.2014, 22:17
pawn Код:
new string[85];
if(sscanf(params, "s[85]", string)) return SendClientMessage(playerid, COLOR_ORANGE, "Hasznбlat: /r <Szцveg>");
if(!PlayerInfo[playerid][Frakcio]) return SendClientMessage(playerid, COLOR_BLUE, "(( Nem vagy egyetlen frakciу tagja sem! ))");
new name[MAX_PLAYER_NAME], szoveg[128];
GetPlayerName(playerid, name, sizeof(name));
format(szoveg, sizeof(szoveg), "[Rбdiу]*AP.PD*%s: %s", name, string);
if(PlayerInfo[playerid][Frakcio] == RENDOR || PlayerInfo[playerid][Frakcio] == LRENDOR)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][Frakcio] == 1) SendClientMessage(i, COLOR_LIGHTBLUE, szoveg);
}
}
return 1;
}