SA-MP Forums Archive
Text repeat at spawning - 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: Text repeat at spawning (/showthread.php?tid=114243)



Text repeat at spawning - GangMember211 - 18.12.2009


public OnPlayerSpawn(playerid)

Quote:

if(gTeam[playerid] == TEAM_AZTECAS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Aztecas.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_VAGOS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Vagos.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_GROVE) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Grove.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_DEALERS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Drugs.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_COPS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Cops.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_BIKERS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Bikers.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}
else if(gTeam[playerid] == TEAM_BALLAS) {
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined The Ballas.", playrname, playerid);
SendClientMessageToAll( COLOR_YELLOW, string );
}

the text repeat all time how to stop it?
i want when they choose a team it shows one time
who can help me?


Re: Text repeat at spawning - _[HuN]_Epsilon_ - 18.12.2009

Use the button to share a code!

_________________________________________________

Use your code at OnPlayerRequestSpawn

https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn

Epsilon



Re: Text repeat at spawning - GangMember211 - 18.12.2009

same problem it dont work