Raised This Month: $ Target: $400
 0% 

First Zombie teleport to Spawnpoint


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 06:28.


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