Otsi Vahvlist
Kuvatakse tulemused sildile ''viimast''.
Leitud 1 tulemus
-
tere, soovin viimast korda abi Tahan oma vipile, panna nii, et ta näitaks Vippe only, aga kui ma lisan sinna asjad ära siis tuleb mingi error.. KOOD #include #include #include #include #include #include #define PLUGIN "Mammu GG vipmenu" #define VERSION "2.0" #define AUTHOR "mammu" new bool:has_used[33] public plugin_init() { register_clcmd( "say /vipmenu", "VIPMenu" ); register_clcmd( "say_team /vipmenu", "VIPMenu" ); register_clcmd( "say /vips", "ShowVips" ); register_clcmd( "say_team /vips" , "ShowVips" ); RegisterHam(Ham_Spawn, "player", "fw_Ham_Spawn") } public VIPMenu( id ) { if(!has_used[id]) { if(get_user_flags(id) & ADMIN_LEVEL_H) { new vip_menu = menu_create( "Mammu GG VipMenu", "menu_handler" ); menu_additem( vip_menu, "130 HP and AP.", "1", 0 ); menu_additem( vip_menu, "Gravity", "3", 0); menu_setprop( vip_menu, MPROP_EXIT, MEXIT_ALL ); menu_display( id, vip_menu, 0 ); } else { client_print(id, print_chat, "[MAMMU] Sul ei ole piisavalt 6igusi et kasutada vipmenud!") } } else { client_print(id, print_chat, "[MAMMU]Sa oled see raund vipmenud kasutanud j2rgmine raund saad uuesti kasutada!") } } public menu_handler( id, menu, item ) { if( item == MENU_EXIT ) { menu_destroy( menu ); return PLUGIN_HANDLED; } new data[6], iName[64]; new access, callback; menu_item_getinfo( menu, item, access, data,5, iName, 63, callback ); new key = str_to_num( data ); switch( key ) { case 1: { if( is_user_alive( id ) ) { set_user_health( id, 130 ); //Sets health of id to 130 set_user_armor( id, 130 ); //Sets armor of id to 130 } } case 3: { if( is_user_alive( id ) ) { set_user_gravity( id, 0.4 ); } } } has_used[id] = true; menu_destroy( menu ); return PLUGIN_HANDLED; } public fw_Ham_Spawn(id) { has_used[id] = false } public ShowVips( id ) { new szMessage[256], adminnames[33][32]; new count, len; for( new i=1; i if( is_user_connected( i ) ) if( get_user_flags( i ) & VipFlags ) get_user_name( i , adminnames[ count++ ] , 32 ); len = formatex( szMessage , 255 , "[VIP]^4Mammu GG Vip`s only:^3 " ); if( count > 0 ) { for( new x; xlen += formatex( szMessage[ len ] , 255-len , "%s%s " , adminnames[ x ] , x if( len > 96 ){ ColorChat( id , RED , szMessage ); len = formatex( szMessage , 255 , "[VIP] " ); } } ColorChat( id , RED , szMessage ); } else { len += format( szMessage[ len ] , 255-len , "Puudub" ); ColorChat( id , RED , szMessage ); } return PLUGIN_HANDLED; } Ja mingi, selline error: [color=#000000]/tmp/textCbhhQl.sma(6) : fatal error 100: cannot read from [/color][url="http://www.amxmodx.org/webcompiler.cgi#"]file[/url][color=#000000]: "colorchat"[/color]