Raised This Month: $ Target: $400
 0% 

Spec plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-29-2008 , 21:43   Spec plugin
Reply With Quote #1

Hi friends. I have a problem.

This plugin change people that are in spec to CT o T
Well, when a player change to a X team, dont have HP, AP, CrossMirror.
That I have to do:

PHP Code:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#define PLUGIN "Spec To CT o T"
#define AUTHOR "ReymonARG"
#define VERSION "1.0"
#define CS_TEAM_SPEC 3
public plugin_init()
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say /ct""gotoct")
 
register_clcmd("say /tt""gotott")
}

public 
gotoct(id) {
    if(
get_user_team(id) == CS_TEAM_SPEC)
    {
      
cs_set_user_team(idCS_TEAM_CT);
    }
 
 if(
get_user_team(id) !== CS_TEAM_SPEC)
 {
 
ColorChat(id,RED,"No tiene permitido cambiarte de Equipo");
 }
}  
public 
gotott(id) {
    if(
get_user_team(id) == CS_TEAM_SPEC)
    {
       
cs_set_user_team(idCS_TEAM_T);
    }
 
 if(
get_user_team(id) !== CS_TEAM_SPEC)
 {
 
ColorChat(id,RED,"No tiene permitido cambiarte de Equipo");
 }

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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:34.


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