Join message - 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: Join message (
/showthread.php?tid=121992)
Join message -
kikoto - 19.01.2010
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
Re: Join message -
JoeDaDude - 19.01.2010
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);
Re: Join message -
MaykoX - 19.01.2010
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));
Re: Join message -
kikoto - 19.01.2010
Its working!
Many thanx guys
Re: Join message -
Correlli - 19.01.2010
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);