Raised This Month: $ Target: $400
 0% 

Simple Script but help needed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Deadman0o06
Member
Join Date: Jun 2006
Old 06-26-2006 , 16:14   Re: Simple Script but help needed
Reply With Quote #1

Quote:
Originally Posted by strikerx22
Well, I honestly just started scripting 2 days ago, so any explanation for anything would help.
Here i attempted to rewrite what you did.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Superman" #define VERSION ".01" #define AUTHOR "AUTHOR" public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)  register_concmd("amx_superman","superman",ADMIN_KICK," :Creates a superman") } public superman(id) {  if(!(get_user_flags(id)&ADMIN_KICK)) {   console_print(id,"[SUPERMAN] You do not have access fool.")   return PLUGIN_HANDLED  }  if(read_argc() == 0) {   console_print(id,"[SUPERMAN] You did not select a user!")   return PLUGIN_HANDLED  }  new user[32], uid  read_argv(1,user,32)  uid = find_player("bh",user)  if(uid == 0) {   console_print(id,"[SUPERMAN] There is no such user!")   return PLUGIN_HANDLED  }  client_cmd(uid,"name Superman!")  set_user_gravity(uid,"0.4")  set_user_health(uid,"250")  set_user_maxpseed(uid,"2.0")  return PLUGIN_HANDLED }

No idea if it compiles or not.
__________________

Last edited by Deadman0o06; 06-26-2006 at 16:19.
Deadman0o06 is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 06-28-2006 , 08:48   Re: Simple Script but help needed
Reply With Quote #2

Quote:
Originally Posted by Deadman0o06
Here i attempted to rewrite what you did.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Superman" #define VERSION ".01" #define AUTHOR "AUTHOR" public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)  register_concmd("amx_superman","superman",ADMIN_KICK," :Creates a superman") } public superman(id) {  if(!(get_user_flags(id)&ADMIN_KICK)) {   console_print(id,"[SUPERMAN] You do not have access fool.")   return PLUGIN_HANDLED  }  if(read_argc() == 0) {   console_print(id,"[SUPERMAN] You did not select a user!")   return PLUGIN_HANDLED  }  new user[32], uid  read_argv(1,user,32)  uid = find_player("bh",user)  if(uid == 0) {   console_print(id,"[SUPERMAN] There is no such user!")   return PLUGIN_HANDLED  }  client_cmd(uid,"name Superman!")  set_user_gravity(uid,"0.4")  set_user_health(uid,"250")  set_user_maxpseed(uid,"2.0")  return PLUGIN_HANDLED }

No idea if it compiles or not.
PHP Code:
set_user_maxpseed(uid,"2.0"
PHP Code:
set_user_maxspeed(uid,"2.0"
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Deadman0o06
Member
Join Date: Jun 2006
Old 06-28-2006 , 10:28   Re: Simple Script but help needed
Reply With Quote #3

Quote:
Originally Posted by Throstur
PHP Code:
set_user_maxpseed(uid,"2.0"
PHP Code:
set_user_maxspeed(uid,"2.0"
Yea i know i had an error there but i fixed it
__________________
Deadman0o06 is offline
Reply



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 08:03.


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