SendMessagetoall - 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: SendMessagetoall (
/showthread.php?tid=130055)
SendMessagetoall -
keujh - 25.02.2010
Okay, basically here's what i want to do.
SendClientMessageToAll(0xDEEE20FF, "Has been kicked.");
How can i make that like:
SendClientMessageToAll(0xDEEE20FF, "The Players Name" " Has been kicked, due to an invalid Roleplay name.");
The help is appreciated.
Re: SendMessagetoall -
Norn - 25.02.2010
Quote:
Originally Posted by keujh
Okay, basically here's what i want to do.
SendClientMessageToAll(0xDEEE20FF, "Has been kicked.");
How can i make that like:
SendClientMessageToAll(0xDEEE20FF, "The Players Name" " Has been kicked, due to an invalid Roleplay name.");
The help is appreciated.
|
pawn Код:
new string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"%s Has been kicked, due to an invalid Roleplay name.", playername);
SendClientMessageToAll(0xDEEE20FF, string);
Re: SendMessagetoall -
ihatetn931 - 25.02.2010
Make a string to do it
pawn Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
somthing like that
Re: SendMessagetoall -
keujh - 25.02.2010
THANKS!
I love you =D