Raised This Month: $ Target: $400
 0% 

Gravity question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 17:47   Gravity question
Reply With Quote #1

I'm trying to make a plugin, and was wondering: Would someone give me the code so when a admin says: gravity-NUMBER HERE, it will automaticly change the gravity?

+1 karma if helped, and when I'm finished ill add credits to my post and plugin when finished.


I will edit the NUMBER HERE, so just to start out with put 100.

Thank you!
__________________



+Karma If I helped you.

Last edited by DuraLast; 01-24-2007 at 17:48. Reason: ERROR
DuraLast is offline
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 18:04   Re: Gravity question
Reply With Quote #2

I'm sorry for double-posting, but I really need help right now, I cant even get started on my plugin without the help of you guys and a code. Please?
__________________



+Karma If I helped you.
DuraLast is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-24-2007 , 18:04   Re: Gravity question
Reply With Quote #3

Code:
#include <amxmodx> #define PLUGIN "GravitySay" #define VERSION "1.0" #define AUTHOR "stupok69" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say", "handle_say") } public handle_say(id) //edited {     if(!(get_user_flags(id) & ADMIN_BAN))         return PLUGIN_CONTINUE         new arg1[32]     read_args(arg1, 31)     remove_quotes(arg1)         if(equali(arg1, "gravity-", 8))     {         new gravity = str_to_num(arg1[8])         server_cmd("sv_gravity %i", gravity)         client_print(id, print_chat, "[AMXX] Gravity set to %i.", gravity)         return PLUGIN_HANDLED     }         return PLUGIN_CONTINUE }

Last edited by stupok; 01-24-2007 at 21:52.
stupok is offline
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 18:06   Re: Gravity question
Reply With Quote #4

Thank you so much.!
__________________



+Karma If I helped you.
DuraLast is offline
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 18:13   Re: Gravity question
Reply With Quote #5

Arg, I cant paste it.

Everytime I try to copy it, it says in the Studio: http://i35.photobucket.com/albums/d1.../ambarcopy.png

why?
__________________



+Karma If I helped you.
DuraLast is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-24-2007 , 18:16   Re: Gravity question
Reply With Quote #6

You posted a link to a different image. If you are using Firefox, highlight all but the last line, copy and paste that into studio, then write the last line manually in studio.

I can't imagine why you wouldn't be able to copy and paste in general...
stupok is offline
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 18:20   Re: Gravity question
Reply With Quote #7

It works now, I just restarted Netscape(my explorer), thanks again for your help!
__________________



+Karma If I helped you.
DuraLast is offline
DuraLast
Junior Member
Join Date: Jan 2007
Location: Sunshine State
Old 01-24-2007 , 18:42   Re: Gravity question
Reply With Quote #8

[DONT MIND MY POST HERE - DELETE IT]
__________________



+Karma If I helped you.
DuraLast 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 22:19.


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