Raised This Month: $ Target: $400
 0% 

chat /spec command crashing server help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bcs16cluj
Member
Join Date: Oct 2011
Old 03-19-2014 , 19:22   chat /spec command crashing server help
Reply With Quote #1

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Spec All"
#define VERSION "1.0.0"
#define AUTHOR "sss"


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /spec", "cmd_spec")
}

public cmd_spec(id)
{
new players[32], pnum, tempid
get_players(players, pnum)

for( new i; i<pnum; i++ )
{
tempid = players[i]
user_kill(tempid)
cs_set_user_team(tempid, CS_TEAM_SPECTATOR)
}


sometimes when i use /spec command my server crashes why?can somebody help me ?pls thank you
bcs16cluj is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:59.


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