AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need help with this i think im way off... (https://forums.alliedmods.net/showthread.php?t=17730)

smallwimpyboy 09-07-2005 15:36

I need help with this i think im way off...
 
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin("amx_killc","1","smallwimpyboy") register_concmd("amx_killc","do_killc",ADMIN_BAN,"By: Smallwimpyboy") set_task (0.1,"do_killc,4000,0,b") } public do_killc(id) { new arg[32] read_argv(2,arg,31) new player = cmd_target(id,arg,1) new iStats[8] { client_print(id,print_center,"You Have %d Kills",iStats[0]") return PLUGIN_CONTINUE }

i need help with this its suposed to print_center and tell you how many
kills you have

Brad 09-07-2005 16:11

Before anyone replies to your double-posting in the Suggestions/Requests forum, go there and delete it by click the "x" next to the "edit" button.

XxAvalanchexX 09-07-2005 17:00

Code:
#include <amxmodx> #include <amxmisc> #include <csstats> public plugin_init() {    register_plugin("amx_killc","1","smallwimpyboy") } public client_connect(id) {    set_task(1.0,"show_kills",id) } public client_disconnect(id) {    remove_task(id) } public show_kills(id) {    if(!is_user_connected(id)) {       return    }    new iStats[8], iBodyHits[8]    get_user_stats(id, iStats, iBodyHits)    client_print(id,print_center,"Kills: %i",iStats[0]);    set_task(1.0,"show_kills",id) }


All times are GMT -4. The time now is 14:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.