AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NONE of my commands are working!! (https://forums.alliedmods.net/showthread.php?t=12686)

Bone 04-21-2005 15:51

NONE of my commands are working!!
 
i dont know what i did.. and im not getting any errors but non of my commands are working. here is my code for commands.

Code:
 ////////////////////////////////////////////////////////////////////  // PLUGIN INITIATION  //////////////////////////////////////////////////////////////////  public plugin_init() {     register_plugin("Bones RP","1.0","Bone");     console_print(0,"* Bones RP Plugin");     // Tasks     set_task(5.0,"close_doors"); // close certain doors     set_task(5.0,"setup_gunshop"); // set up barry and things     set_task(5.0,"remove_vehicles"); // remove vehicles on map load     // CVars     register_cvar("avarp_version","0.77.3");     register_cvar("avarp_unemployed_wages","3");     register_cvar("avarp_unemployed_job","Unemployed");     register_cvar("avarp_jailcommand","1")     register_cvar("avarp_cuffspeed","150");     register_cvar("avarp_cuffcolor","255 100 0");     register_cvar("avarp_gunshopowner","Barry");     register_cvar("avarp_ammopriceY","10");     register_cvar("avarp_ammopriceN","30");     register_cvar("weaponrestriction","1");     register_cvar("avarp_robbing711gainamt","16");     register_cvar("avarp_robbing711moneyamt","160");     register_cvar("avarp_robbing711wait","1440");     register_cvar("avarp_robbingdinergainamt","16");     register_cvar("avarp_robbingdinermoneyamt","210");     register_cvar("avarp_robbingdinerwait","1800");     register_cvar("avarp_robbingbankgainamt","38");     register_cvar("avarp_robbingbankmoneyamt","1500");     register_cvar("avarp_robbingbankwait","2160");     register_cvar("avarp_robbingfloodcontrol","30");     register_cvar("avarp_robbingrate","2");     register_cvar("avarp_prunetime","1209600");     register_cvar("avarp_hudcolor","255 255 255");     register_cvar("avarp_speakdistance","350");     register_cvar("avarp_losemoneyondeath","1");     register_cvar("avarp_dropmoneyondeath","1");     register_cvar("avarp_secondsinminute","2");     register_cvar("avarp_removetruck","0");     register_cvar("avarp_removechopper","0");     // Commands     register_concmd("amx_org","cmd_org",ADMIN_LEVEL_A,"<name> <org> - Sets a player's orginaztion.");     register_concmd("amx_unorg","cmd_unorg",ADMIN_LEVEL_A,"<name> - Kick's player out of orginaztion.");     register_clcmd("amx_givelockpick","givelockpick",ADMIN_LEVEL_A,"- gives a key to the user specified for the door in front of you");     register_clcmd("say","handlesay",-1); // say commands     register_clcmd("say /picklock","picklocktwo",-1);     register_clcmd("say /pickcuffs","pickcuffs",-1);     register_clcmd("say /buyticket","buyticket",-1);     register_clcmd("say /checkticket","checkticket",-1);     register_clcmd("heal","handlesaytwo",-1); // say commands     register_clcmd("say_team","handlesay",-1); // say commands     register_clcmd("amx_avarpcvars","cmd_avarpcvars",ADMIN_LEVEL_A,"- displays AvaRP cvars and their current values"); // cvar list     register_concmd("amx_givemoney","cmd_givemoney",ADMIN_LEVEL_A,"<user> <$> <wallet|bank> - creates new money and gives to a user"); // give money     register_concmd("amx_takemoney","cmd_takemoney",ADMIN_LEVEL_A,"<user> <$> <wallet|bank> - takes money from a user, because you can"); // take money     register_concmd("amx_startlotto","cmd_startlotto",ADMIN_LEVEL_A); // give money     register_concmd("amx_employ","cmd_employ",ADMIN_LEVEL_A,"<user> <$/hr> <title> - employs a user as title with specified wages"); // employ     register_concmd("amx_unemploy","cmd_unemploy",ADMIN_LEVEL_A,"<user> - lays off the specified user and set him as unemployed"); // unemploy     register_clcmd("amx_employstatus","cmd_employstatus",ADMIN_LEVEL_A," - displays list of users and their employment status"); // employment status     // Touching     register_touch("player","player","touch_player"); // touch another player     register_touch("employ_money","player","touch_money"); // touch money entity     // Events     register_event("DeathMsg","event_deathmsg","a","2!0"); // death event     register_event("WeaponInfo","docuff","b"); // do cuff stuff on weapon change     // Menus     register_menucmd(register_menuid("Gun Shop^n"),1023,"weapchoose"); // main gunshop menu     register_menucmd(register_menuid("Weapon Licenses (Page 1):^n"),1023,"weapLpg1"); // weapon licenses pg 1     register_menucmd(register_menuid("Weapon Licenses (Page 2):^n"),1023,"weapLpg2"); // weapon licenses pg 2     register_menucmd(register_menuid("Weapon Licenses (Page 3):^n"),1023,"weapLpg3"); // weapon licenses pg 3     register_menucmd(register_menuid("Weapon Licenses (Page 4):^n"),1023,"weapLpg4"); // weapon licenses pg 4     register_menucmd(register_menuid("Weapons (Page 1):^n"),1023,"weappg1"); // weapons pg 1     register_menucmd(register_menuid("Weapons (Page 2):^n"),1023,"weappg2"); // weapons pg 2     register_menucmd(register_menuid("Weapons (Page 3):^n"),1023,"weappg3"); // weapons pg 3     register_menucmd(register_menuid("Weapons (Page 4):^n"),1023,"weappg4"); // weapons pg4     //MENUS     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6     register_menucmd(register_menuid("Which food?"), keys, "giveWeapon")     register_clcmd("say /sdfsref", "showWeaponMenu")     // Register Refilling     set_task(float(get_cvar_num("avarp_robbing711wait")/3),"robbing711refill");     set_task(float(get_cvar_num("avarp_robbingdinerwait")/3),"robbingdinerrefill");     set_task(float(get_cvar_num("avarp_robbingbankwait")/3),"robbingbankrefill");  }

like when i type /picklock it doesnt do it it jsut says it like normal.

XunTric 04-21-2005 15:54

Lol!

Your editing XxAvalanchexX's roleplay and put in your own name?

XxAvalanchexX 04-21-2005 16:07

Code:
register_plugin("Bones RP","1.0","Bone"); console_print(0,"* Bones RP Plugin");
Wow, that entire thing is your plugin? I wonder why all the cvars start with avarp_. Weird. Maybe it stands for something. Well, seeing as you can create your own fully-functional RP plugin, I don't think I'll ever have to help you again. :-)

Rosbief 04-21-2005 16:29

:)
 
Avalanche You have to admit he can code nice right?
lol
He code's simular like you.
Are you training his small skill's?

Bone 04-21-2005 16:32

i never said it was all done by me i said my rp plugin meaning ur rp plug in with my shit in it. i didnt mean u offend u. can someone help thou.

XxAvalanchexX 04-21-2005 16:38

Quote:

Originally Posted by Bone
i said my rp plugin meaning ur rp plug in with my shit in it

One would assume that by "your rp plugin" it actually belongs to you.

Also, if it's still my plugin, but with your "shit" in it, then why bother changing the name?

It's obvious you don't even know what you're doing. handlesaytwo?

Bone 04-21-2005 16:45

yes handlesaytwo >_>...

and i changed name for no reason... cause i felt like it. is it that big of a deal? i wasnt trying to anger u or that.

f1del1ty.oXi 04-21-2005 18:35

You just jipped all of his hard-earned code. I'd be ticked off too. At least take the time to change the cvars from something different. Or give him credit (although your name should be second as it's HIS).

=x

XxAvalanchexX 04-21-2005 19:30

Quote:

Originally Posted by Bone
and i changed name for no reason... cause i felt like it. is it that big of a deal?

Yes, that's removing my name from the credits, not nice at all.

Bone 04-21-2005 19:49

your name is in credits.. i posted one single piece of code ur name is in comments in top, if you like i will add ur name into plugin name. sorry. can u please help me


All times are GMT -4. The time now is 09:54.

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