 |
|
Junior Member
|

06-25-2006
, 10:10
Re: HEY im new
|
#4
|
This is what i came up with :
/* Plugin Speedy, Sonic's first script */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Speedy"
#define VERSION "1.0"
#define AUTHOR "Sonic"
public plugin_init() {
register_plugin("Speedy", "1.0", "Sonic")
register_concmd("amx_speedy","do_speed",ADMIN _BAN," user Speeds the specified user")
}
public do_speed(id) {
if (!(get_user_flags(id)&ADMIN_BAN)) {
console_print(id,"[AMXX] No access, buzz off!")
return PLUGIN_HANDLED
}
if (read_argc() == 0) {
console_print(id,"[AMXX] You must specify 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,"[AMXX] Invalid User Id")
return PLUGIN_HANDLED
}
client_cmd(uid,"echo player has got speedy!")
client_cmd(uid,"set_user_maxspeed(index, Float:speed = -1.0)")
console_print(id,"speeded player!")
return PLUGIN_HANDLED
}
i get 4 warnings; loose indentation on line 22, 26, 33 and 36. I use amxx-studio 1.4 to script it!!
what did i do wrong?
|
|
|
|