Raised This Month: $32 Target: $400
 8% 

All SvenCo-op weapon and item menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Fun Stuff        Approver:   EKS (166)
Goshik
Senior Member
Join Date: Apr 2006
Location: Vilnius
Old 04-14-2006 , 14:54   All SvenCo-op weapon and item menu
Reply With Quote #1

Description:
A simple plugin for Sven Co-op which includes a menu with all weapons and items.
I didn't do that this menu can bring only admin, because it's a team game, so if only admin can have all the weapons, it would be unfair.

Commands:
sc_givemenu - Brings you the weapons and items menu
sc_toggle - Turns weapons and items menu on or off (Requires Admin Menus Access, flag "u")

Cvars:
scgive_toggle - 1 to enalbe, 0 to disable. Enter it in your server.cfg config file.

Changelog
* version 0.4 - fixed menu bug.
* version 0.3 - added menu, so you can choose the weapon you want, instead of having all.
* version 0.2 - added sc_toggle, so you can turn menu on/off.
* version 0.1 - released.
Attached Files
File Type: sma Get Plugin or Get Source (svenco-op_items.sma - 6223 views - 6.5 KB)
__________________
Check out my rock band Moondust!
http://www.youtube.com/moondustband
Goshik is offline
Send a message via Skype™ to Goshik
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-14-2006 , 16:04  
Reply With Quote #2

You didn't any access checking (if the person is admin), and also your indentation matches the command.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 04-21-2006 , 20:42  
Reply With Quote #3

A note:
new menuBody[1024]
It kind of poinless, its proberbly limited to 192 chars anyways.
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
dweiiewb
New Member
Join Date: Apr 2006
Old 04-22-2006 , 05:12  
Reply With Quote #4

I've tried it but it didn't work anyway thank you for your plugins.
__________________
I'm Taiwanese who live in Thailand

My English is very poor so sorry if you don't understand what I say...

PS. Please correct my English,Thank you.
dweiiewb is offline
Send a message via MSN to dweiiewb
geertjan88
Member
Join Date: May 2006
Old 05-24-2006 , 05:37  
Reply With Quote #5

Hello guys,

This is the first .sma file i edited. I made it only admins with flag H can use it. It doesnt print to the hud anymore. I also made it that Admins with flag A can enable/disable it. But now my question was. Am i allowed to use it?? I mean am i not getting trouble i edited someone else his plugin and use it?.

Greetings, Really nice plugin btw it made me learn the first steps on creating my own plugins.
geertjan88 is offline
awpticaL
Member
Join Date: Jul 2004
Location: EAST US
Old 05-24-2006 , 23:14  
Reply With Quote #6

Quote:
Originally Posted by geertjan88
Hello guys,

This is the first .sma file i edited. I made it only admins with flag H can use it. It doesnt print to the hud anymore. I also made it that Admins with flag A can enable/disable it. But now my question was. Am i allowed to use it?? I mean am i not getting trouble i edited someone else his plugin and use it?.

Greetings, Really nice plugin btw it made me learn the first steps on creating my own plugins.
That's why its open source. You can make your changes to it as needed and such, just be sure to give credit where credit is due
If your unsure, you could always ask for permission(PM/E-mail/etc)
__________________
[img]http://img247.**************/img247/1166/userbar414943lj2.gif[/img]
[img]http://img116.**************/img116/527/ownage39ch.jpg[/img]
awpticaL is offline
Send a message via AIM to awpticaL Send a message via MSN to awpticaL
geertjan88
Member
Join Date: May 2006
Old 05-25-2006 , 05:01  
Reply With Quote #7

Quote:
Originally Posted by awpticaL
Quote:
Originally Posted by geertjan88
Hello guys,

This is the first .sma file i edited. I made it only admins with flag H can use it. It doesnt print to the hud anymore. I also made it that Admins with flag A can enable/disable it. But now my question was. Am i allowed to use it?? I mean am i not getting trouble i edited someone else his plugin and use it?.

Greetings, Really nice plugin btw it made me learn the first steps on creating my own plugins.
That's why its open source. You can make your changes to it as needed and such, just be sure to give credit where credit is due
If your unsure, you could always ask for permission(PM/E-mail/etc)
Thanks that is all i needed to know. I just wanted to know i am not doing anything illegal. Normaly i dont worry so much about that. But i dont want to post something as my work while someone else has made the basic. So i will certainly put his name and thanks to him on my own plugin based on his.
geertjan88 is offline
zeus646
New Member
Join Date: Jun 2006
Old 06-08-2006 , 19:41  
Reply With Quote #8

um how do u that like change it so that admins r the only persons to do the menu 0o i need help.
zeus646 is offline
sixcentgeorge
Junior Member
Join Date: Feb 2006
Location: villevieille
Old 06-20-2006 , 13:00   need slot1 slot2 ...slot9 and slot0
Reply With Quote #9

Quote:
Originally Posted by dweiiewb
I've tried it but it didn't work anyway thank you for your plugins.
same for me , the menu is there but gives nothing until i configured ammos and numbers ,
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
..
bind "9" "slot9"
i did not find for 0 : minigun at first test but after editing and compile : it works
Attached Files
File Type: amx svenco-op_items.amx (6.1 KB, 599 views)
File Type: sma Get Plugin or Get Source (svenco-op_items.sma - 1925 views - 6.6 KB)
sixcentgeorge is offline
DeadlyDragon
New Member
Join Date: Jun 2006
Old 06-21-2006 , 03:41  
Reply With Quote #10

for slot 0 i used slot10 and it worked, but i think everytime i restart the game the commands are gone like bind 7 slot7
i have to re-enter it all.
DeadlyDragon is offline
Reply


Thread Tools
Display Modes

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 02:38.


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