Hey!
This is more of a request, not a Scripting Help post, but still.
I'm Tattoo's scripter from the knife server. Might've heared about me, mr. Raizo. I know I am not supposed to help you, because of our relationship, but here we go.
I think it would be easier if you'd rewrite the code from the scratch, as it would be a pain in the ass to modify a code that big.
If though you don't want to take this into consideration, I'm gonna give you this information :
In order to respawn a player you're gonna have to use the << spawn( id ) >> function. Sometimes the client gets bugged, so you'll have to use the spawn( id ) func twice. How?
Quote:
set_task( 0.5, "SpawnHim", id );
set_task( 0.7, "SpawnHim", id );
|
The SpawnHim function should look like that :
Quote:
public SpawnHim( id )
spawn( id );
|
You will also have to change the players' positions after you move them. How?
Quote:
new Float:Origin[ 3 ];
Origin[ 0 ] = blabla;
Origin[ 1 ] = blabla2;
Origin[ 2 ] = blabla3;
set_pev( id, pev_origin, Origin );
|
blabla, blabla2, blabla3 are 3 floats which set the x, y and z coordinates of the spawn.
After that, you're gonna have to give players the needed weapons using give_item( id, "weapon_blabla" ).
Check out the weapon codes in order to use give_item.
That's about it.