28.02.2015, 20:27
Start off by using ShowPlayerDialog to show a dialog to a player, show a "DIALOG_STYLE_LIST".
Then use the OnDialogResponse callback to detect which buttons he presses. (use listitem and such functions to check buttons, explained in the wiki)
Then according after which button he presses, use SetSpawnInfo to set the player's info when spawning (including team, skin, spawn coordinates and weapons.
Then in the same place you use that, use SpawnPlayer right after it to spawn the player with that team, skin, weapons and at those coordinates.
Then use the OnDialogResponse callback to detect which buttons he presses. (use listitem and such functions to check buttons, explained in the wiki)
Then according after which button he presses, use SetSpawnInfo to set the player's info when spawning (including team, skin, spawn coordinates and weapons.
Then in the same place you use that, use SpawnPlayer right after it to spawn the player with that team, skin, weapons and at those coordinates.