Want to Have a discussion and solution !! - 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: Want to Have a discussion and solution !! (
/showthread.php?tid=299330)
Want to Have a discussion and solution !! -
FaSihYouSf - 25.11.2011
Hi there SanAndreas World!!
I have a discussion to start about scripting
Actually i want help frm u guyz
I want to make a script..
whenever i make anyone admin
i want a red tag named [Admin] after his name
e.g Fa$ih
[Admin]: Hyy all
I want a solution and if anyone could make me a quote of all script
Thankzzz
Re: Want to Have a discussion and solution !! -
FaSihYouSf - 28.11.2011
any solutionzz
Re: Want to Have a discussion and solution !! -
Kostas' - 28.11.2011
You need your Admin variable and OnPlayerText
pawn Code:
public OnPlayerText(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
if(Your_Variable[playerid][Your_Level] >= 1) {
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "%s[ADMIN]: %s", name, text);
SendPlayerMessageToAll(playerid, textv2);
}
else {
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "%s: %s", name, text);
SendPlayerMessageToAll(playerid, textv2);
}
return 0;
}
Re: Want to Have a discussion and solution !! -
FaSihYouSf - 04.12.2011
ohhhh thxx mann
@Kostas
Re: Want to Have a discussion and solution !! -
BleverCastard - 04.12.2011
Also, if you want you can use the whole name red so that when they are on admin duty You know.
Code:
SetPlayerColor(playerid, Coloryouwant);