Everyone must see who teles to where.
#1

Код:
SendClientMessageToAll(0xFF0000AA, "Someone has teleported to Los Santos", playerid);
Player%s or %d doesnt works ,then it shows a number
Reply
#2

pawn Код:
new PlayerName[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
format(string,sizeof(string),"Player %s has teleported to Los Santos",PlayerName);
SendClientMessageToAll(0xFF0000AA,string);
Reply
#3

You dont need the (

So rather than:
pawn Код:
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
You can do:
pawn Код:
GetPlayerName(playerid,PlayerName,sizeof PlayerName);
Reply
#4

More efficient:
pawn Код:
new
    myArray[128];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "Player %s has teleported to Los Santos.", myArray);
SendClientMessageToAll(0xFF0000AA, myArray);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)