Raised This Month: $ Target: $400
 0% 

[HELP] Need Edit..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 11-26-2015 , 14:13   [HELP] Need Edit..
Reply With Quote #1

I need edit this plugin. When killed respawn get zombie all players (Sorry my english too bad.)

I want compatible with ZP 4.3 or 5.0

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

#pragma semicolon 1

#define VERSION    "1.0"

new cvar_on, cvar_time;

new Float: Origin[33][3];

public plugin_init()
{        
    register_plugin("Respawn at place", VERSION, "Drekes");
    
    cvar_on = register_cvar("amx_respawn_on", "1");
    cvar_time = register_cvar("amx_respawn_time", "5.0");
    
    RegisterHam(Ham_Killed, "player", "Fwd_Ham_Killed_Pre", 0);
}

public Fwd_Ham_Killed_Pre(victim, attacker, shouldgib)
{
    if(get_pcvar_num(cvar_on))
    {    
        if(is_user_connected(victim))
        {
            entity_get_vector(victim, EV_VEC_origin, Origin[victim]);
            Origin[victim][2] += 20.0;
        }
        
        set_task(get_pcvar_float(cvar_time), "Respawn", victim);
    }
}

public Respawn(id)
{
    if(is_user_connected(id))
    {
        ExecuteHamB(Ham_CS_RoundRespawn, id);
        
        entity_set_origin(id, Origin[id]);
    }
}

Last edited by The Professional; 11-26-2015 at 16:23. Reason: Anlamazsın diye
The Professional 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 18:04.


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