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

[ES] Algunos stocks que uso


  
 
 
Thread Tools Display Modes
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-03-2010 , 13:10   Re: [ES] Algunos stocks que uso
#11

yo pongo changelevel cuando toy en LAN testeando xd...
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-03-2010 , 13:58   Re: [ES] Algunos stocks que uso
#12

PHP Code:
stock IsPlayer(ent

    new 
szClass[32]; 
    
entity_get_string(entEV_SZ_classnameszClass31); 
     
    if(
equal(szClass"player") ) 
        return 
1
     
    return 
0

Que. Es. Esto.

PHP Code:
#define IsPlayer(%1) (1 <= %1 <= 32) 
__________________
"There is no knowledge, that is not power"
fezh is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-03-2010 , 23:15   Re: [ES] Algunos stocks que uso
#13

Si, tenes razon.. ese define es mucho mas util y menos codigo al pedo... Igual ese stock ni lo uso.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-04-2010 , 13:31   Re: [ES] Algunos stocks que uso
#14

Si lo vas a dejar así por lo menos cambiale el size al array rata.
PHP Code:
new szClass]; 
__________________
"There is no knowledge, that is not power"
fezh is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 06-04-2010 , 15:37   Re: [ES] Algunos stocks que uso
#15

#define IsInDuck(%1) (entity_get_int(%1, EV_INT_bInDuck) == 1)
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 06-07-2010 , 16:16   Re: [ES] Algunos stocks que uso
#16

Perdón que reviva, dejo uno para kickear que se me ocurrio ahora

PHP Code:
stock KickIndex, const Reason[])
{
    
emessage_begin(MSG_ONESVC_DISCONNECT_Index)
    
ewrite_stringReason )
    
emessage_end()
    
    return 
0;
}


// Uso.
KickIndex"Tu razón"
__________________
Reality is wrong, dreams are for real.
g_often is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-08-2010 , 12:54   Re: [ES] Algunos stocks que uso
#17

Mejor sería algo así:
PHP Code:
stock kick_userid, const szReason[ ], iAny:... )
{
    new 
szMessage191 ];
    
vformatszMessagecharsmaxszMessage ), szReason);
    
    
emessage_beginMSG_ONESVC_DISCONNECT_id );
    
ewrite_stringszMessage );
    
emessage_end( );

__________________
"There is no knowledge, that is not power"
fezh is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-08-2010 , 21:46   Re: [ES] Algunos stocks que uso
#18

PHP Code:
stock write_string_exbExternal, const szString[ ], iAny:... )
{
    new 
szMessage191 ];
    
vformatszMessagecharsmaxszMessage ), szString);
    
    switch ( 
bExternal )
    {
        case 
0write_stringszMessage );
        case 
1ewrite_stringszMessage );
        default: 
log_amx"Plugin failed to format string: ^"%s^""szMessage );
    }

No estaba al pedo igual.
__________________
"There is no knowledge, that is not power"
fezh 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 04:08.


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