22.09.2009, 17:36
i would use SetPlayerClassEx and under OnPlayerRequestSpawn GametextForPlayer. I would use getPlayerClass then. It should look like this then(i didnt compile that, might have errors, but i just want to give an example):
You have to set for a new Name you want to display, a new Team with AddPlayerClassEx and use the Code above to display the name. That's all. I hope it helped you.
Greetings,
DeathOnaStick
Код:
OnPlayerRequestSpawn { if(GetPlayerTeam(playerid)==1) //shows your first teams' name { GameTextForPlayer(playerid, "Youre in Team One!", 3000, 3); } else if(GetPlayerTeam(playerid)==2) { GameTextForPlayer(playerid, "Youre in Team Two!", 3000, 3); } // And so On return 1; }
Greetings,
DeathOnaStick