This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

First Zombie teleport to Spawnpoint


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CeDeee
Member
Join Date: Dec 2011
Old 07-05-2013 , 18:06   First Zombie teleport to Spawnpoint
Reply With Quote #1

hy

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>
#include <zombieplague>

public plugin_init()
{
    
register_plugin("ZM-SpaWN""0.1""A Magyarkormany")
}

public 
zp_round_started(gamemodeid)
{
    if(
gamemode != MODE_INFECTION)
        return 
PLUGIN_HANDLED
    
    
if(zp_get_user_first_zombie(id))
    {
        
ExecuteHamB(Ham_CS_RoundRespawn,id)
    }
    return 
PLUGIN_CONTINUE

The zombies but teleports back into a human
CeDeee is offline
fl0werD
Senior Member
Join Date: May 2011
Old 07-05-2013 , 18:44   Re: First Zombie teleport to Spawnpoint
Reply With Quote #2

1| Save Origin at Spawn.
2| In infection teleport to saved origins.
fl0werD is offline
Send a message via ICQ to fl0werD
CeDeee
Member
Join Date: Dec 2011
Old 07-05-2013 , 19:06   Re: First Zombie teleport to Spawnpoint
Reply With Quote #3

Quote:
Originally Posted by fl0werD View Post
1| Save Origin at Spawn.
2| In infection teleport to saved origins.
Help me

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>
#include <ns>
#include <zombieplague>
#include <fun>

new origin[3

public 
plugin_init()
{
    
register_plugin("ZM-SpaWN""0.1""A Magyarkormany")
}
public 
client_spawn (id)
{
    
get_user_origin(idorigin0)
    
}
public 
zp_round_started(gamemodeid)
{
    if(
gamemode != MODE_INFECTION)
        return 
PLUGIN_HANDLED
    
    
if(zp_get_user_first_zombie(id))
    {
        
set_user_origin(idorigin)
    }
    return 
PLUGIN_CONTINUE

CeDeee is offline
fl0werD
Senior Member
Join Date: May 2011
Old 07-05-2013 , 19:12   Re: First Zombie teleport to Spawnpoint
Reply With Quote #4

[ 33 ][ 3 ]
fl0werD is offline
Send a message via ICQ to fl0werD
CeDeee
Member
Join Date: Dec 2011
Old 07-05-2013 , 19:45   Re: First Zombie teleport to Spawnpoint
Reply With Quote #5

Quote:
Originally Posted by fl0werD View Post
[ 33 ][ 3 ]
What?
CeDeee is offline
OxidedMaze
Junior Member
Join Date: Jul 2013
Old 07-06-2013 , 14:03   Re: First Zombie teleport to Spawnpoint
Reply With Quote #6

I think what fl0werD said is to change your
PHP Code:
new origin[3]

get_user_origin(idorigin0)

set_user_origin(idorigin
into
PHP Code:
new origin[33][3]

get_user_origin(idorigin[id], 0)

set_user_origin(idorigin[id]) 
OxidedMaze is offline
CeDeee
Member
Join Date: Dec 2011
Old 07-06-2013 , 20:12   Re: First Zombie teleport to Spawnpoint
Reply With Quote #7

i dont know. helpme
CeDeee is offline
OxidedMaze
Junior Member
Join Date: Jul 2013
Old 07-07-2013 , 04:08   Re: First Zombie teleport to Spawnpoint
Reply With Quote #8

Try this
PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <engine> 
#include <ns> 
#include <zombieplague> 
#include <fun> 

new origin[33][3]  

public 
plugin_init() 

    
register_plugin("ZM-SpaWN""0.1""A Magyarkormany"

public 
client_spawn (id

    
get_user_origin(idorigin[id], 0
     

public 
zp_round_started(gamemodeid

    if(
gamemode != MODE_INFECTION
        return 
PLUGIN_HANDLED 
     
    
if(zp_get_user_first_zombie(id)) 
    { 
        
set_user_origin(idorigin[id]) 
    } 
    return 
PLUGIN_CONTINUE 

OxidedMaze is offline
CeDeee
Member
Join Date: Dec 2011
Old 07-07-2013 , 05:38   Re: First Zombie teleport to Spawnpoint
Reply With Quote #9

Wrong.. :/
CeDeee is offline
Serkan Kischa
Member
Join Date: Dec 2012
Old 07-07-2013 , 06:12   Re: First Zombie teleport to Spawnpoint
Reply With Quote #10

Try this

PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <engine> 
#include <zombieplague> 

public plugin_init() 

    
register_plugin("ZM-SpaWN""0.1""A Magyarkormany"


public 
zp_round_started(gamemodeid

    if(
gamemode != MODE_INFECTION
        return 
PLUGIN_HANDLED 
     
    
if(zp_get_user_first_zombie(id)) 
    { 
        
ExecuteHamB(Ham_CS_RoundRespawn,id
    } 
    return 
PLUGIN_CONTINUE 

public 
zp_round_started(gamemodeid)  
{  
    if(
gamemode != MODE_INFECTION)  
        return 
PLUGIN_HANDLED  
      
    
if(zp_get_user_first_zombie(id))  
    {  
        
set_user_origin(idorigin[id])  
    } 

Last edited by Serkan Kischa; 07-07-2013 at 06:12.
Serkan Kischa 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 04:58.


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