Raised This Month: $12 Target: $400
 3% 

[DUDA] Como puedo poner el bad camper solo para un equipo?


  
 
 
Thread Tools Display Modes
Fuck_You
Senior Member
Join Date: Dec 2011
Location: return city[id];
Old 05-24-2013 , 08:47   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#11

winchester STAHP no tienes idea de lo hablas! y ese if tiene que ser así :

if(cs_get_user_team(id) != CS_TEAM_CT)
return PLUGIN_HANDLED;

obiamente con el include cstrike, sohalil no tomes en cuenta lo que dijo winchester de los returns
__________________
Fuck_You is offline
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 05-24-2013 , 12:16   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#12

Bad Plugin.
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.
DJHD! is offline
Send a message via MSN to DJHD!
MexPower
Veteran Member
Join Date: Nov 2012
Old 05-24-2013 , 13:20   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#13

Quote:
Originally Posted by Fuck_You View Post
winchester STAHP no tienes idea de lo hablas! y ese if tiene que ser así :

if(cs_get_user_team(id) != CS_TEAM_CT)
return PLUGIN_HANDLED;

obiamente con el include cstrike, sohalil no tomes en cuenta lo que dijo winchester de los returns
id no existe

y tienes que mandar otro return al final para que no salgan esos warings que enrealidad nose porque
__________________
Allied Modders En Español
MexPower is offline
Sohail001
BANNED
Join Date: May 2013
Location: I'm from my HOME...
Old 05-24-2013 , 13:50   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#14

Quote:
Originally Posted by MexPower View Post
id no existe

y tienes que mandar otro return al final para que no salgan esos warings que enrealidad nose porque
Bueno es verdad me salen 3 warnings y 1Error de id
Sohail001 is offline
Vitanova
Member
Join Date: May 2013
Old 05-24-2013 , 13:54   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#15

Quote:
Originally Posted by Sohail001 View Post
Bueno es verdad me salen 3 warnings y 1Error de id
Es porque tenes que hacer un loop que cheque todos los jugadores conectados del server y ver ahí quien es de cada equipo.
Vitanova is offline
MexPower
Veteran Member
Join Date: Nov 2012
Old 05-24-2013 , 13:57   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#16

Code:
g_cvarCheckAll      = register_cvar("badcamper_check_all", "1"); // comprobar los dos equipos, o simplemente del equipo con el objetivo principal
__________________
Allied Modders En Español
MexPower is offline
Sohail001
BANNED
Join Date: May 2013
Location: I'm from my HOME...
Old 05-24-2013 , 14:23   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#17

Quote:
Originally Posted by MexPower View Post
Code:
g_cvarCheckAll      = register_cvar("badcamper_check_all", "1"); // comprobar los dos equipos, o simplemente del equipo con el objetivo principal
Ya lo e probado con eso pero poniendo esto en mapas que son como por ejemplo:
de_dust
de_dust2
de_mapa

Las mapas que comienzan con de_ sale camping a TTs, sabes pero yo kiero que salga a los CTs en cualquier mapa...
Sohail001 is offline
Fuck_You
Senior Member
Join Date: Dec 2011
Location: return city[id];
Old 05-24-2013 , 15:28   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#18

LOL
PHP Code:
    /* determine if either team is allowed to camp */
    
new bool:allowTeamCamp[3] = {false, ...}; // using elements 1 and 2 to correspond to the values for TEAM1 and TEAM2
    
new playerCnt_team1playerCnt_team2teamIDid
__________________
Fuck_You is offline
Sohail001
BANNED
Join Date: May 2013
Location: I'm from my HOME...
Old 05-24-2013 , 15:39   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#19

Quote:
Originally Posted by Fuck_You View Post
LOL
PHP Code:
    /* determine if either team is allowed to camp */
    
new bool:allowTeamCamp[3] = {false, ...}; // using elements 1 and 2 to correspond to the values for TEAM1 and TEAM2
    
new playerCnt_team1playerCnt_team2teamIDid
o

PHP Code:
        // ignore the meter if the player can legally camp or the player's meter is being ignored
        
teamID get_user_team(id);
        if (
allowTeamCamp[teamID] || g_playerFlags[id] & METER_IGNORE) continue; 

Last edited by Sohail001; 05-24-2013 at 16:07.
Sohail001 is offline
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 05-24-2013 , 23:26   Re: [DUDA] Como puedo poner el bad camper solo para un equipo?
#20

Quote:
Originally Posted by Winchester90 View Post
:$

PHP Code:
public check_camping()
{
      if (
CS_TEAM_CT)
      {
         
// code code code 
Respecto a los warnings que te tira should return a value. Es porque en algun if pusiste algo mal o te dejaste return PLUGIN_HANDLED;.
-.- No confundas a los users , ni una cosa simple sabes hacer.
__________________
Mi firma era tan sexy .-.
StrikerV2 is offline
Send a message via MSN to StrikerV2
 



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 21:28.


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