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)
}