Join message
#1

Hi!
My server is using Stunt mod by Fafu. When write a teleport command, it says "NAME Joined To NAME". I download a map, pasted in the server, but when I write the teleport command, he doesn't says I joined. Can someone tells me how can I fix it.
Thanx in advance and sorry for my bad english
Reply
#2

Put this on your teleport command:

pawn Код:
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Joined To MapNameGoesHere", name );
SendClientMessageToAll(0xFFFF00AA, string);
Reply
#3

at teleport command
pawn Код:
SendClientMessageToAll(0xFFFF00AA, string);
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has gone to Under Sea Race (/usr)", pName);
And add this at top :
pawn Код:
new pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pName, sizeof(pName));
Reply
#4

Its working!
Many thanx guys
Reply
#5

Quote:
Originally Posted by JoeDaDude
Put this on your teleport command:

pawn Код:
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Joined To MapNameGoesHere", name );
SendClientMessageToAll(0xFFFF00AA, string);
Or more simpler (using only one array):
pawn Код:
new
    myArray[64];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s joined.. your text.", myArray);
SendClientMessageToAll(0xFFFFFFFF, myArray);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)