Quote:
|
Originally Posted by joecaprini
I tried to make a batman script after this. Why doesn't it work???
-code-
|
I dunno, but if you tell me I will help you fix it
Obviously you must have some more information than it doesnt work.
Does it compile? Does it give you compileing errors or warnings?
Can you get it to load in game? Does it not do what you want it to? etc etc etc
[Edit] at first glance it appears that you have tried to do everything at once.
The admin requirments aren't set properly and you called the same cvar twice for the same purpose.
If you haven't already, start from the beggining and work your way up one step at a time
Code:
/*AMX MOD X SCRIPT
*
*Batman Weapons
*
*Gives all rifles
*
*Version 1.1
*
*Created by IseeOWNEDpeople AKA JoeCaprini
*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init(){
register_plugin("Batman Weapons","1.1","IseeOWNEDpeople")
register_concmd("amx_batman","brucewayne")
}
public brucewayne(id){
give_item(id,"weapon_awp")
give_item(id,"weapon_m4a1")
give_item(id,"weapon_ak47")
give_item(id,"weapon_aug")
give_item(id,"weapon_sg552")
give_item(id,"weapon_mp5navy")
give_item(id,"weapon_xm1014")
give_item(id,"weapon_elite")
give_item(id,"weapon_deagle")
give_item(id,"weapon_flashbang")
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_smokegrenade")
}
This works.
Anyone can use it, and it is always on.
First you would need to add a cvar to turn on/off. Compile it. Test it.
Then add admin requirments. Compile it. Test it.
That way you will know what is wrong and if you cannot solve the problem you can say "I tried to add an on/off cvar and now it doesnt work when I enter the command in game" or something similar.