2021-02-21, 01:38 AM
(2021-02-20, 10:21 PM)daddy. Wrote: My bad, try this:
Code:CMD:gl(playerid, params[])
{
? ? static
? ? ? ? Text[132],
? ? ? ? string[128],
? ? ? ? PlayerName[MAX_PLAYER_NAME];
? ? if(sscanf(params, "s[132]", Text)) return SendClientMessage(playerid, -1, "{D41818}[COMANDO]{AFAFAF} /gl <texto>");
? ? else
? ? {
? ? ? ? if (Gl_Privados[playerid] == 1) return SendClientMessage(playerid, -1, "{D41818}[ERROR]{AFAFAF} you have blocked the /gl");
? ? ? ? GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // storing player name first in the PlayerName variable
? ? ? ? foreach(new i : Player)
? ? ? ? {
? ? ? ? ? ? if (Gl_Privados[i] == 0)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? format(string, sizeof(string), "{D41818}[ID:%d - %s]:{AFAFAF} %s",playerid, PlayerName, Text);
? ? ? ? ? ? ? ? SendClientMessage(i, 0xFFFFFF00, string);
? ? ? ? ? ? }
? ? ? ? }
? ? }
? ? return 1;
}
thank you so much, really