Raised This Month: $12 Target: $400
 3% 

[HELP] Need Edit..


Post New Thread Reply   
 
Thread Tools Display Modes
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
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 11-26-2015 , 16:25   Re: [HELP] Need Edit..
Reply With Quote #2

Does anyone understand what I wrote ?
The Professional is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-26-2015 , 17:49   Re: [HELP] Need Edit..
Reply With Quote #3

No
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 11-27-2015 , 06:14   Re: [HELP] Need Edit..
Reply With Quote #4

Quote:
Originally Posted by wickedd View Post
No
when respawn get player zombie.

Last edited by The Professional; 11-27-2015 at 06:14.
The Professional is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-27-2015 , 06:25   Re: [HELP] Need Edit..
Reply With Quote #5

Quote:
Originally Posted by The Professional View Post
when respawn get player zombie.
You mean make

This is not the correct section
You should post ur question here
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Reply


Thread Tools
Display Modes

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 15:26.


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