Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
//registers the command "say /tutorial" and calls cmdTutorial when someone says it
register_clcmd("say /tutorial", "cmdTutorial")
}
public cmdTutorial(index)
{
//checks if he's alive first
if(is_user_alive(index) )
{
//sets his health
set_user_health(index, 150)
//sets his gravity to half (400)
set_user_gravity(index, 0.5)
//new variable to store his name
new szName[32]
//gets names and stores it in szName
get_user_name(index, szName, charsmax(szName) )
//prints to everyone that he is on steroids
client_print(0, print_chat, "%s is on steroids!", szName)
}
}
Written in browser, so may be indentation warnings.
__________________