Need Help to change a plugin
HI
First: I am a scripting Noob I found a dawn nice plugin http://forums.alliedmods.net/showthread.php?p=120997 Usage: amx_invis <name|steamid> <on|off> - sets invisibility on or off on user") But i need a little change... Usage: amx_invis <name|steamid or @all> <on|off> - sets invisibility on or off on user") I need it for my Knifeserver (cs 1.6), but with a funktion to give all players the invisible mod. I know this from other amxx plugins..so u can write "amx_funktion @all" Can anybody help me? Sry for my bad english, but iŽam German. PLZ help me great thanks |
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:
...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!!! 8) |
Code:
#include <amxmodx>A little misstake in your code? =)[/quote] |
1 Attachment(s)
Here try this one..
|
self problem.....
console: ] amx_invis @all on Unknown command: amx_invis ] amx_invis Mistmoehre on Invisibility enabled on client sTn | Mistmoehre |
I'm find few mistakes :)
string with for must be changed to: Code:
because first playerid=1 and last playerid=num... now my plugin work in a game! try again use amx_invis @all on it's very strange that he say "unknown command"... |
Great Thanks
but i have testet with 8 players on my server and it dosent work correkt... console: ] amx_invis @all on Invisibility enabled on client $VanO Now "$VanO" is invisible but only this player and no other |
ok P34nut post me the right code
Code:
#include <amxmodx> |
ok, but why "for (i=0; i<num; i++)" ?
|
Because...
To begin wtih i is set to 0, but as long as i is less than num, it keeps adding one with i++ |
| All times are GMT -4. The time now is 16:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.