View Single Post
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-04-2007 , 10:28   Re: Ghost Respawning
Reply With Quote #3

Code:
public event_deathmsg() {     if(get_pcvar_num(GhostEnable)) {         new victim = read_data(2);             if(GhostStones[victim] && is_user_connected(victim)) {             get_user_origin(victim, Origin);             new parm[1];             parm[0] = victim;             set_task(3.0, "ghost_player", 72, parm[0], 1);                     GhostStones[victim]--;         }     } }

Let's make an example: Player 1 get's killed by Player 2 and Player 1 have a Stone, now the Origin array have he's origin, but 2 sec's later Player 2 get's killed by Player 3. Now the Origin array is filled whit Player 2's origin.

See the hook? Now when Player 1 get's spawned he will be placed where Player 2 died. I dunno if the plugin is ment to do like this but i was quite sure it wasen't.
Deviance is offline