AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help about SPAWN (https://forums.alliedmods.net/showthread.php?t=331663)

StrikerM 03-31-2021 17:24

Help about SPAWN
 
Hello, how can i modify the spawn for everyone ?

I want to make a command that spawn players exactly where i want, is this possible ?

If yes, how ?

Natsheh 03-31-2021 17:31

Re: Help about SPAWN
 
well since you've posted here i'm going to tell you what to do...

register a client command to save your current position origin in a global 3d vector array.

hook player spawn post, then change the player index origin to the saved origin array.

StrikerM 03-31-2021 17:46

Re: Help about SPAWN
 
Quote:

Originally Posted by Natsheh (Post 2742569)
well since you've posted here i'm going to tell you what to do...

register a client command to save your current position origin in a global 3d vector array.

hook player spawn post, then change the player index origin to the saved origin array.

Oke, so if i want to do everytime on different maps, is hard to save the coord everytime, i want to have different spawns like spawning on the site A and is not possible without having the coords, right ?

i am from san andreas multi player and over there you can do something like Setplayerpos(id, x, y, z, a);

But here how can i take the coords without being on the map going where i want to spawn and do something like /save and save the coords just for that map until i change it.


EDIT: I found out about BSP Edit and plugin map spawn editor, everything is ok now, thanks verry much for the help.


All times are GMT -4. The time now is 13:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.