Raised This Month: $ Target: $400
 0% 

Special spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elpouletorange
Senior Member
Join Date: Oct 2007
Old 10-17-2007 , 18:51   Special spawn
Reply With Quote #1

Hi, I search a plugin like that:


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

Thanks!
elpouletorange
elpouletorange is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-18-2007 , 10:18   Re: Special spawn
Reply With Quote #2

Hmmm, i've maked and tested this...works.
Attached Files
File Type: sma Get Plugin or Get Source (new_respawn_style.sma - 786 views - 1.5 KB)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2007 , 10:39   Re: Special spawn
Reply With Quote #3

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 ) {
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2007 , 11:40   Re: Special spawn
Reply With Quote #4

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.
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-18-2007 , 12:54   Re: Special spawn
Reply With Quote #5

@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...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2007 , 13:30   Re: Special spawn
Reply With Quote #6

Because there's a delay like 3 seconds between roundend and newround.
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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