AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First Zombie teleport to Spawnpoint (https://forums.alliedmods.net/showthread.php?t=220001)

CeDeee 07-05-2013 18:06

First Zombie teleport to Spawnpoint
 
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

fl0werD 07-05-2013 18:44

Re: First Zombie teleport to Spawnpoint
 
1| Save Origin at Spawn.
2| In infection teleport to saved origins.

CeDeee 07-05-2013 19:06

Re: First Zombie teleport to Spawnpoint
 
Quote:

Originally Posted by fl0werD (Post 1984167)
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



fl0werD 07-05-2013 19:12

Re: First Zombie teleport to Spawnpoint
 
[ 33 ][ 3 ]

CeDeee 07-05-2013 19:45

Re: First Zombie teleport to Spawnpoint
 
Quote:

Originally Posted by fl0werD (Post 1984191)
[ 33 ][ 3 ]

What? :D

OxidedMaze 07-06-2013 14:03

Re: First Zombie teleport to Spawnpoint
 
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]) 


CeDeee 07-06-2013 20:12

Re: First Zombie teleport to Spawnpoint
 
i dont know. :( helpme

OxidedMaze 07-07-2013 04:08

Re: First Zombie teleport to Spawnpoint
 
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 



CeDeee 07-07-2013 05:38

Re: First Zombie teleport to Spawnpoint
 
Wrong.. :/

Serkan Kischa 07-07-2013 06:12

Re: First Zombie teleport to Spawnpoint
 
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])  
    } 



All times are GMT -4. The time now is 06:28.

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