Raised This Month: $ Target: $400
 0% 

Simple Script but help needed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
strikerx22
Junior Member
Join Date: Apr 2005
Old 06-25-2006 , 14:38   Simple Script but help needed
Reply With Quote #1

Code:
#include <amxmodx>
#include <fun>

public plugin_init ( ) {
	register_plugin("Striker's Superman Plugin","0.1","Ryan 'Striker' Davis")
	register_concmd("rp_superman","do_sm",ADMIN_KICK, " Sets user to Superman!")
}
public do_sm(id) {
	if (!(get_user_flags(id) &ADMIN_KICK) ) {
		console_print(id,"[Striker's RP] Get Admin douche!")
		return PLUGIN_HANDLED
	}
	if (read_argc () == 0) {
		console_print (id, "[Striker's RP] Who the fuck am I supposed to turn into Superman?")
		return PLUGIN_HANDLED
	}
		new user[32], uid
		read_argv(1,user,32)
	uid = find_player ("bh",user)
	if (uid == 0) {
		console_print (id, "[Striker's RP] Hey, asshole, nobody here goes by that!")
		return PLUGIN_HANDLED
	}
new HEALTH(id) {
	get_user_health(id)
	set_user_health(id, 200)
}		
	client_cmd (uid,"name Superman")
	console_print (id,"User Is now Superman.")
	return PLUGIN_HANDLED
}
Basically, I just started scripting last night and it is not as easy as I thought, I am attemptying to make a plugin where, when you type in the command, the player turns into "Superman", giving him low-grav and more HP. This, as you can tell, didn't work. Please help.
__________________
Padme:Obi-Wan told me you killed my husband, the father of my child...
Vader:No! I am your babies Daddy!
Padme: *GASP*!?!?!?!?!?!?!
strikerx22 is offline
 



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