Raised This Month: $ Target: $400
 0% 

ReSpawn code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 09:45   ReSpawn code
Reply With Quote #1

Anyone can give respawn code?It very hard to learn at CSDM.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-26-2008 , 10:11   Re: ReSpawn code
Reply With Quote #2

If it's hard to learn, then I suggest that you use fun.
Code:
spawn(index);
SnoW is offline
Send a message via MSN to SnoW
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 10:19   Re: ReSpawn code
Reply With Quote #3

Can give one example with respawn code?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-26-2008 , 10:22   Re: ReSpawn code
Reply With Quote #4

Example... Do you mean something like this?

Code:
#include <fun>
 
public plugin_init()
    register_clcmd("respawn_me", "function");
 
public function(id)
     respawn(id);
Ofc I suggest that you use fakemeta but this is easier...
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-26-2008 , 10:22   Re: ReSpawn code
Reply With Quote #5

PHP Code:
stock respawnid )
{
    if( 
is_user_connected(id) && (<= get_pdata_int(id114) <= 2) )
    {
        
ExecuteHamBHam_Spawnid )
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-26-2008 , 10:23   Re: ReSpawn code
Reply With Quote #6

Ye, suggest that you use fakemeta just like Connor is showing you.
SnoW is offline
Send a message via MSN to SnoW
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 10:31   Re: ReSpawn code
Reply With Quote #7

I think Fun more easier.
Quote:
Originally Posted by SnoW View Post
Example... Do you mean something like this?

Code:
#include <fun>
 
public plugin_init()
    register_clcmd("respawn_me", "function");
 
public function(id)
     respawn(id);
Ofc I suggest that you use fakemeta but this is easier...
I think you wrote this for when client die,he must write respawn_me at console and he respawn,right?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-26-2008 , 10:34   Re: ReSpawn code
Reply With Quote #8

Yes, it's a command with you can respawn yourself. Ofc if you are doing some DM or anything, you should hook player death and respawn him automatically, also not allow alive players to "teleport to their base".
SnoW is offline
Send a message via MSN to SnoW
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 10:39   Re: ReSpawn code
Reply With Quote #9

If die with automatic respawn,what the code?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 10:46   Re: ReSpawn code
Reply With Quote #10

NVM.Auto respawn I will ask later.Now if I want to do limit on manual respawn?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz 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 09:09.


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