AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Special spawn (https://forums.alliedmods.net/showthread.php?t=62062)

elpouletorange 10-17-2007 18:51

Special spawn
 
Hi, I search a plugin like that:


At end of round save position
At spawning teleport all player at old position

Thanks!
elpouletorange:up:

Alka 10-18-2007 10:18

Re: Special spawn
 
1 Attachment(s)
Hmmm, i've maked and tested this...works.

Arkshine 10-18-2007 10:39

Re: Special spawn
 
No need to use a param to pass id.

Code:
    new Parm[1];     Parm[0] = id;         set_task(0.5, "SetPlayerOrigin", 1234, Parm, 1); } public SetPlayerOrigin(Parm[]) {     new id = Parm[0];

==>

Code:
    set_task(0.5, "SetPlayerOrigin", id ); } public SetPlayerOrigin( id ) {

ConnorMcLeod 10-18-2007 11:40

Re: Special spawn
 
You could delay the "get origin" stuff to be more accurate.(Get angles could also be cool).
May be you can pass origins in the task parms.

Alka 10-18-2007 12:54

Re: Special spawn
 
@arkshine - I know, but i thought that way is more accurate. :s
@connorr -
Quote:

Originally Posted by connorr
You could delay the "get origin" stuff to be more accurate

hmm, i don't see any accuracy in this... :|
Quote:

Originally Posted by connorr
Get angles could also be cool

Maybe... :)

ConnorMcLeod 10-18-2007 13:30

Re: Special spawn
 
Because there's a delay like 3 seconds between roundend and newround.


All times are GMT -4. The time now is 01:19.

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