Thread: Monster Mod
View Single Post
solano
Member
Join Date: Nov 2009
Old 12-02-2009 , 14:24   Re: Monster Mod
Reply With Quote #88

ok this is what im trying to
when the player spawns he should be moved to a predefined origin PlayerSpawns[0]
but with the above code that doesnt happen no error or anything just nothing happens
Code:
RegisterHam(Ham_Spawn,"player","MH_MoveToSpawn",1);//in plugin_init

public MH_MoveToSpawn( const id )
{
    set_pev( id, pev_origin, PlayerSpawns[0])
    return PLUGIN_HANDLED;
}
doesnt work is it because of the "player" thing?
i also tryed
Code:
register_event("ResetHUD", "MH_MoveToSpawn", "be")

Last edited by solano; 12-02-2009 at 14:55.
solano is offline