My second script. Need some help
Hey i was making my second script. Im really noob at this just as you know. I got a name changer plugin, llama plugin and chicken plugin. And i tryed to make a command called amx_mess which makes you llama, chicken and changes your name too "DONT MESS WITH THE ADMINS". And another command that removes the stuff... I know i forgot some lines to indentify the user so amxx knows who to "mess" up. So i need some help.
Here it is: Code:
|
some work
You need to read the argument of the player name. The command gets called but the input <name> you want to 'mess' is not called. Try this:
Code:
Do the same for unmess and im not sure if the server_cmd with the %s will work, just test with it for a bit |
I believe he is trying to run the commands via player name, so you need to get the name, too. Try this.
Code:
I also made sure to check that the player was found (the "!player" check) and fixed the flags for cmd_target. |
Thanks guys it almost works! It compiles and the command work. But the command only make you llama and changes your name. It doesnt make you to a chicken. Any ideas how to fix it? Just as you know i used what XxAvalanchexX said. Its maybe because i get those warnings when i compile? When i compile i get this:
//// amx_mess.sma // D:Spill/Steam/SteamApps/My@Mail(Secret :lol:)/detiacted server/cstrike/addons/amxmodx/scripting/amx_mess.sma <30> : warning 217: loose indentation // D:Spill/Steam/SteamApps/My@Mail(Secret :lol:)/detiacted server/cstrike/addons/amxmodx/scripting/amx_mess.sma <52> : warning 217: loose indentation // // 2 warnings. // Done. And can somebody help me to make amx write "*Player* has been messed up by the admins. Have fun!" on the screen when the command is used? Well, this is what i got now: Code:
|
Loose indentations don't affect the plugin at all. Anyway, are you sure the amx_chicken function exists? Do you have chickenmod on your server?
|
Yes im 100% sure that chicken mod exist. I dont got the original on metamod though. I just downloaded that chickenmod: rebirth thing to amxx. Do you have any idea of whats wrong?
----------------------------------------------------------------------------- EDIT: I made it! =) I just read thru the chicken mod readme file and found a command called c_chicken instead of amx_chicken. And that one worked =) |
lol gj sounds pretty tight :lol:
|
http://forums.joe.to/images/smiles/pic_lastweek.jpg
Silverice, you revived a thread 2 months old for no reaosn whatsoever... nice. |
| All times are GMT -4. The time now is 19:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.