Raised This Month: $ Target: $400
 0% 

Fix Pliss Invis


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-03-2008 , 07:08   Re: Fix Pliss Invis
Reply With Quote #5

Sorry, I haven't written the script becouse I had some problems lately.
But here are some suggestions that will help you.
I will be busy these days, if you have small questions I will answer them.

First thing is.
Register new round event not last round.
PHP Code:
register_event("HLTV","event_new_round","a","1=0","2=0"
Second.
The idea to block the ability of the invisible man to buy is good.
But I thought of a better and easier way.
You should register the curweapon event (when the player changes weapons)
And if automaticly force the client to use the knife weapon.
[EDIT] Here you can make the client invisible also![/EDIT]

Example usage:
PHP Code:
register_event("CurWeapon""change_weapon""b""1=1"// in plugin_init()

public change_weapon(id)
{
new 
weapon read_data(2)
if (
weapon == CSW_C4 || weapon == CSW_KNIFE)
 return 
PLUGIN_CONTINUE

client_cmd
(id,"weapon_knife")
return 
PLUGIN_CONTINUE

Hope it helps!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 08-03-2008 at 07:16.
ot_207 is offline
 



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 05:31.


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