Raised This Month: $ Target: $400
 0% 

Need Help to change a plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JohnJ3
Member
Join Date: May 2006
Location: Tomsk
Old 06-02-2006 , 17:33  
Reply With Quote #2

ok, my dear "scripting Noob"
Now, make a reserved copy of file invis.sma
For insert to command a change ("@all") you must insert into script (invis.sma) after string #46 ( read_argv(2,arg2,255);) next strings:
Code:
if (equali(arg1,"@all") && equali(arg2,"on")) {  new num, i  num=get_playersnum(1)  for (i=0; i<num; i++)  {   invisOnOff(i,1,id)  }  return PLUGIN_HANDLED }
for exam, next string must be a new player = cmd_target(id,arg1,2);
...compiling...
change invis.amxx from plugins directory on the invis.amxx from compile directory.
Use command with argument "@all"

I'm not test this plugin in game, but it's compiling (4 warnings - it's few for me ) and this plugin must be work in game. If it false, write here!

Sorry for my bad english, but I'm learn Russian!!!
JohnJ3 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 16:30.


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