Raised This Month: $ Target: $400
 0% 

Hit a wall, read through funcs and stuff before post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Len
Senior Member
Join Date: Dec 2007
Old 12-31-2010 , 10:42   Hit a wall, read through funcs and stuff before post
Reply With Quote #1

Server says im flooding and join teams doesn't work lol, im new to pawn/small amxmodx my logic here is prob wrong is there anyone that can help me out thank you
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Basics"
#define VERSION "1.0"
#define AUTHOR "Hihiyoyo"
 
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say""rules")
 
register_clcmd("jointeam""block_jointeam")
}
public 
rules(id) {
 new 
command[6]
 new 
message[200]
 
read_argv(1message201)
 
client_cmd(id"say message")
 
read_argv(2command6)
 if (
equali(command"/rules"6)) {
  new 
name[31]
  
get_user_name(idname30)
  
client_print(idprint_chat"name The rules are..")
 }
 return 
PLUGIN_HANDLED
}
public 
block_jointeam(id) {
 if (
cs_get_user_team(id) != CS_TEAM_SPECTATOR)
 return 
PLUGIN_HANDLED
 
else {
 new 
team[1]
 
read_argv(1team1)
 if (
team[0] == 1)
 
client_cmd(id"jointeam 1")
 else if (
team[0] == 2)
 
client_cmd(id"jointeam 2")
 else
 
client_cmd(id"jointeam 3")
 }
 return 
PLUGIN_HANDLED


Last edited by Len; 12-31-2010 at 13:42. Reason: script editted, found some things out myself
Len 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 02:12.


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