SendMessagetoall
#1

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.
Reply
#2

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);
Reply
#3

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
Reply
#4

THANKS!

I love you =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)