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*!?!?!?!?!?!?!