Posts: 71
Threads: 12
Joined: Mar 2008
Reputation:
0
Hi, i have a little Question, what other ways there are to spawn a player after /login. I know you can user "SpawnPlayer", but this would cause the player to die. Is there any other way to spawn a player without dieing after he typed /login?
Posts: 210
Threads: 27
Joined: Jul 2008
Reputation:
0
//onplreqspawn
setplayerpos
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
hmm, wierd that you tell, but you can switch a vaue which represents who player is and do a few SeSpawnInfo's to spawn at diffrent locations with dirffrent weapons
Posts: 71
Threads: 12
Joined: Mar 2008
Reputation:
0
I already thought about that, but half of the stuff which you can set in SetSpawnInfo is not used like that in my script (selfmade roleplay). So i dont really need it, but as i see theres no other solution...
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
well you need coordinates for spawn for any script, that's a fact
Posts: 71
Threads: 12
Joined: Mar 2008
Reputation:
0
Thats right but i would like to use SetPlayerPos for it. The only time i need to use SetSpawnInfo is after /login, if someone dies, im using SetPlayerPos in OnPlayerSpawn.
I know its fact, that i need coordinates for spawing a player, but i dont need the other stuff in SetSpawnInfo, like Weapons, Ammo...
The best would be if SpawnPlayer wont need SetSpawnInfo. It should just display the minimap/weaponbox and call OnPlayerSpawn, where you can put your code