PDA

View Full Version : Sourcemod: Respawning a player



free
02-20-2011, 04:58 AM
Hi,

Im trying to make a sourcemod plugin respawn a player but i can't seem to get it right. Is there any function I can use like CS_RespawnPlayer() from css?

Any tips are welcomed.

Twelve-60
02-20-2011, 05:50 AM
You need the following gamedata offset:


"Spawn" // CSP_Player::Spawn();21;22;A13AD4
{
"windows" "21"
"linux" "22"
"mac" "22"
}

and then call the virtual function :)