Announce - 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)
+--- Thread: Announce (
/showthread.php?tid=292120)
Announce -
viosteaua98 - 22.10.2011
i want sistem with /announce but more colors i have 1 announce color i want more can someone help me ?
colors like : red blue yellow and more ...
Re: Announce -
ReVo_ - 22.10.2011
Just write ~g~ ~y~ ~r~ etc.. for colored messages
Re: Announce -
viosteaua98 - 22.10.2011
can you show me an exemple?
Re: Announce -
ReVo_ - 22.10.2011
You already have a /announce system? (with gametexts?)
If you have it, when you write a message (example: helloo guys) you just write he~r~lloo ~y~guys (hel(start red)lloo (start yellow)guys )
To have a message color
Re: Announce -
viosteaua98 - 22.10.2011
i have /announce by XtremeAdmin2
Re: Announce -
park4bmx - 22.10.2011
if using
ZCMD and
sscanf2
pawn Код:
COMMAND:ann(playerid, params[])
{
if(PlayerInfo[playerid][PlayerAdmin] < ANN_LEVEL) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command!");
GetPlayerName(playerid, Pname, sizeof(Pname));
if(sscanf(params,"si", params[0],params[1])) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/Ann "WHITE"[Text] [Style 1-6]");
if(params[1]>6||params[1]<0) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/Ann "WHITE"[Text] [Style 1-6]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) GameTextForPlayer(i, params[0], 5000, params[1]);
}
return 1;
}
then you can just do
/Ann ~r~Test~g~Ann~b~Colors 5
this will be liek this
Test Ann Colors
Re: Announce -
viosteaua98 - 22.10.2011
just green and white ?
I want /announce sistem
Re: Announce -
Zonoya - 22.10.2011
NO lol green and white are just the SendClientMessage Colors take this command i type /ann ~r~H~b~e~w~ll~r~o
it will be
He(cant show white)llo
Re: Announce -
Babul - 22.10.2011
https://sampwiki.blast.hk/wiki/GameTextStyle