Raised This Month: $ Target: $400
 0% 

Duels help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kazalu
Senior Member
Join Date: Dec 2013
Location: Romania
Old 12-28-2015 , 04:52   Re: Duels help
Reply With Quote #1

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.

Last edited by Kazalu; 12-28-2015 at 04:55.
Kazalu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode