Quote:
Originally Posted by doku
don't know if this is what you're trying to do but I wrote this script which will respawn a player, maybe it will help :
prep sdk call for Round Respawn :
PHP Code:
new Handle:hGameConf = INVALID_HANDLE new Handle:hRoundRespawn = INVALID_HANDLE
public OnPluginStart() {
hGameConf = LoadGameConfigFile("l4d") StartPrepSDKCall(SDKCall_Player) PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "RoundRespawn") hRoundRespawn = EndPrepSDKCall() }
then call it when ever you need :
PHP Code:
SDKCall(hRoundRespawn, client)
you will need to set up the l4d offset in the 'gamedata' folder by creating l4d.txt with the following :
PHP Code:
"Games" { "left4dead" { "Offsets" { "RoundRespawn" { "windows" "488" "linux" "489" } } } }
|
That's pretty awesome, is there by any chance a way to force the player into a ghost state? (Infected spawning state)
The ghost command and respawn command cannot be stripped of cheat flags.