AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Gravity question (https://forums.alliedmods.net/showthread.php?t=50359)

DuraLast 01-24-2007 17:47

Gravity question
 
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!

DuraLast 01-24-2007 18:04

Re: Gravity question
 
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?

stupok 01-24-2007 18:04

Re: Gravity question
 
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 }

DuraLast 01-24-2007 18:06

Re: Gravity question
 
Thank you so much.!

DuraLast 01-24-2007 18:13

Re: Gravity question
 
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?

stupok 01-24-2007 18:16

Re: Gravity question
 
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...

DuraLast 01-24-2007 18:20

Re: Gravity question
 
It works now, I just restarted Netscape(my explorer), thanks again for your help!

DuraLast 01-24-2007 18:42

Re: Gravity question
 
[DONT MIND MY POST HERE - DELETE IT]


All times are GMT -4. The time now is 22:19.

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