This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[ES] Dar algo a un equipo.


  
 
 
Thread Tools Display Modes
Author Message
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 04-16-2010 , 12:04   [ES] Dar algo a un equipo.
#1

Como hago para determinar una funcion a un equipo.
EJ
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /curartt""curartt")
}
public 
curartt()
{
    
set_user_health(EQUIPO TERROR100// me falta eso como determinar un equipo.

__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 04-16-2010 , 12:07   Re: [ES] Dar algo a un equipo.
#2

if(get_user_team() = 1)
/ tu funcion
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 04-16-2010 , 12:08   Re: [ES] Dar algo a un equipo.
#3

PHP Code:
/* Plugin generated by AMXX-Studio */ 

#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "New Plug-In" 
#define VERSION "1.0" 
#define AUTHOR "author" 

new iMaxplayers
public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
register_clcmd("say /curartt""curartt"

    
iMaxplayers get_maxplayers()

public 
curartt(id

    if(
get_user_team(id) == && is_user_alive(id))
    
set_user_health(id100)
    }

__________________
Oh hell no this shit is awesome !!!

Last edited by shinoda; 04-16-2010 at 12:42. Reason: haa.. recien entendi lo que quiso decir xD
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 04-16-2010 , 12:34   Re: [ES] Dar algo a un equipo.
#4

PHP Code:
if (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
{
funcion...

__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 04-16-2010 , 18:40   Re: [ES] Dar algo a un equipo.
#5

Ya sabia eso, pero igual eso le daria la vida al que escribe el comando si es tt, yo quiero que se la de a todo el equipo terror.
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it

Last edited by benamo6; 04-16-2010 at 20:16.
benamo6 is offline
Send a message via MSN to benamo6
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 04-16-2010 , 20:42   Re: [ES] Dar algo a un equipo.
#6

PHP Code:
#include <amxmodx>
#include <fun>

new g_iMaxPlayers;

public 
plugin_init() 
{
    
register_plugin("StringX Test""1.0""Ramón Berrutti");
    
    
register_clcmd("say /curartt""cmd_curartt");
    
g_iMaxPlayers get_maxplayers();
}

public 
cmd_curarttid )
{
    for( new 
1<= g_iMaxPlayersi++ )
    {
        if( 
get_user_team(i) == )
        {
            
set_user_health(i100.0 );
        }
    }

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 04-16-2010 , 21:40   Re: [ES] Dar algo a un equipo.
#7

eso necesitaba antibots gracias
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
 



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 12:56.


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