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