#1

pawn Код:
SendClientMessageToAll(0xAAAAAAAA, "%s has killed thereselves, they will be in the next round.");
How could I get it to say the players name? and how could I do it for multiple commands? :$
Reply
#2

Doesn't %s mean players name?
Reply
#3

Quote:
Originally Posted by gab1971
Посмотреть сообщение
Doesn't %s mean players name?
you must have a variable, though?
Reply
#4

like this you can
pawn Код:
new name[MAX_PLAYERS];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "Welcome %s to my server!", name);
        SendClientMessage(playerid, 0xFF9900AA, string);
Reply
#5

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
like this you can
pawn Код:
new name[MAX_PLAYERS];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "Welcome %s to my server!", name);
        SendClientMessage(playerid, 0xFF9900AA, string);
Aye, I got it mate, thank you very much.

This forum requires that you wait 120 seconds between posts. Please try again in 49 seconds. :@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)