lfnetwork.com mark read register faq members calendar

Thread: Two questions!
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 06-05-2006, 01:24 PM   #1
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
Two questions!

HELP!

I'm trying to add a command which removes the victims lightsaber. My first question is how can I make it so that once the command has been called that player cannot use their Saber at all afterwards until it's been reversed. My current code:

Code:
if(victim->client->ps.weapon == WP_SABER)
{
		victim->client->ps.weapon = WP_NONE;		
}
This *SHOULD* set their weapon to NONE if they currently have their saber out. Great. But now they can easily switch back to their Saber again. Is there any way of removing it completely from the player "inventory"?

Lastly when compiling I get this error:

Code:
 error C2143: syntax error : missing ')' before 'type'
For this line:

Code:
victimnum  = ClientNumberFromString( gentity_t *victim, arg); //Victims Client Number, the name is from the given arguments
All it does is get the client number from the name provided as the command argument. But it gives me that error... I'm nto sure why. Any help?
Dom_152 is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Two questions!

Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:07 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.