SA-MP Forums Archive
need help - 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: need help (/showthread.php?tid=81389)



need help - myandyou - 10.06.2009

i need if you will spawn a text for all player "name player - is now - team from player id -''

does anyone now it?


Re: need help - Jese - 10.06.2009

Код:
public OnPlayerSpawn(playerid) {
	if(gTeam[playerid] == YOURTEAM) {
	new name[256];
	new string[256];
	GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), "*** %s joined team.", name);
	SendClientMessageToAll(COLOR_RED, string);
}
P.S. I sux in pawno=/

Lets let this to one Good scripter



Re: need help - myandyou - 10.06.2009

Quote:
Originally Posted by *Jesenice*
Код:
public OnPlayerSpawn(playerid) {
	if(gTeam[playerid] == YOURTEAM) {
	new name[256];
	new string[256];
	GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), "*** %s joined team.", name);
	SendClientMessageToAll(COLOR_RED, string);
}
P.S. I sux in pawno=/

Lets let this to one Good scripter
now i get mylittlepony joined team
it must be mylittlepony joined *Teamname*