Raised This Month: $ Target: $400
 0% 

Spawn location


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-26-2016 , 20:02   Spawn location
Reply With Quote #1

I want to create a spawn location
Example
How to do this?

iVictim : respawn to : origin 600 -150 -850
iKiller : respawn to : origin 1000 -150 -850

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

public plugin_init() 
{
    register_plugin("respawn", "0.1", "x")
    
    RegisterHam(Ham_Killed, "player", "fw_PlayerKilled", 1)
}

public fw_PlayerKilled(iVictim, iKiller)  
{
    if (iVictim == iKiller || !is_user_alive(iKiller)) 
        return
    ExecuteHamB(Ham_CS_RoundRespawn, iKiller && iVictim)
}

Last edited by raizo11; 01-26-2016 at 20:20.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
 



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 09:31.


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