It compiles fine except the speed doesn't change. The footsteps and invisibility works though. Here's my code:
Code:
/*
NinjaMod 1.0
By -=|)347}{=-
*/
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
public myfunction(id,level,cid) {
if (!cmd_access(id,level,cid,1)) {
return PLUGIN_HANDLED
}
client_print(0,print_center,"Welcome to NinjaMod v1.0")
return PLUGIN_HANDLED
}
public round_start()
{
client_print(0,print_center,"Setting up everything...")
new maxplayers = get_maxplayers() + 1
for(new i=1;i<maxplayers;i++)
{
if(is_user_alive(i)) {
set_user_maxspeed(i, 500.0)
set_user_rendering(i, kRenderFxGlowShell,0,0,0,kRenderTransAlpha,100)
set_user_footsteps(i, 1)
}
}
return PLUGIN_CONTINUE
}
public CurWeapon()
{
new Maxplayers = get_maxplayers() + 1
for(new t=1;t<Maxplayers;t++)
{
if(is_user_alive(t)) {
set_user_maxspeed(t, 500.0)
}
}
}
public plugin_init() {
register_plugin("NinjaMod","1.0","|)347}{")
register_logevent("round_start",2,"0=World triggered","1=Round_Start")
register_clcmd("amx_welcomein","myfunction",ADMIN_VOTE," : prints NinjaMod v1.0 to everyone")
return PLUGIN_CONTINUE
}