Raised This Month: $ Target: $400
 0% 

spawn ---> fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 03-14-2009 , 03:47   spawn ---> fakemeta
Reply With Quote #1

How can I respawn dead players using ONLY fakemeta? I tryed this:
Code:
dllfunc(DLLFunc_Spawn,id)
but when players respawns they are laying on the ground and have 0 hp

then I found this:
Code:
stock fm_respawn(id)
{
    set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
    dllfunc(DLLFunc_Spawn, id)
    set_pev(id, pev_iuser1, 0)
}
but it gives the same result

Last edited by Empowers; 03-14-2009 at 04:37.
Empowers is offline
Send a message via ICQ to Empowers
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-14-2009 , 05:38   Re: spawn ---> fakemeta
Reply With Quote #2

See fakemeta_utils.inc
Arkshine is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-14-2009 , 06:05   Re: spawn ---> fakemeta
Reply With Quote #3

have you tried...

PHP Code:
stock fm_respawn(id)
{
    
set_pev(idpev_deadflagDEAD_RESPAWNABLE)
    
dllfunc(DLLFunc_Spawnid)
    
set_pev(idpev_iuser10)
    
set_pev(idpev_health100.0)

?
__________________
Hunter-Digital is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 03-14-2009 , 11:47   Re: spawn ---> fakemeta
Reply With Quote #4

oh thx i hadn't set the hp that was the problem
Empowers is offline
Send a message via ICQ to Empowers
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-14-2009 , 12:09   Re: spawn ---> fakemeta
Reply With Quote #5

I don't think you need to set the HP.

Anyway, would be better to use hamsandwich :

ExecuteHamB(Ham_Spawn, id)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-14-2009 , 13:05   Re: spawn ---> fakemeta
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
ExecuteHamB(Ham_Spawn, id)
What is the difference between this and ExecuteHamB(Ham_CS_RoundRespawn, id)?
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-14-2009 , 14:14   Re: spawn ---> fakemeta
Reply With Quote #7

Quote:
Originally Posted by Dores View Post
ExecuteHamB(Ham_CS_RoundRespawn, id)?
That should be used to respawn a player if using HamSandwich, and it the best way to do it over any others.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 03-15-2009 , 05:29   Re: spawn ---> fakemeta
Reply With Quote #8

On my server there are plugins that are only using Fakemeta and CSDM modules.. so I don't want to add HamSandwich..

Anyway this works perfectly:
Code:
stock fm_respawn(id)
{
    set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
    dllfunc(DLLFunc_Spawn, id)
    set_pev(id, pev_iuser1, 0)
    set_pev(id, pev_health, 100.0)
}

Last edited by Empowers; 03-15-2009 at 05:35.
Empowers is offline
Send a message via ICQ to Empowers
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-16-2009 , 23:16   Re: spawn ---> fakemeta
Reply With Quote #9

There is a thread in the Code Snippets/Tutorials forum in which you can find posts explaining how to properly get around those bugs when using the Fakemeta method (pages 2 and 3 IIRC).
__________________
MeRcyLeZZ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2009 , 04:42   Re: spawn ---> fakemeta
Reply With Quote #10

#19 ^^
Arkshine 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 08:52.


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