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

[SOLVED]Need fun stocks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 07:03   [SOLVED]Need fun stocks
Reply With Quote #1

The title said all

somebody can help me?

Thanks

Last edited by #8 SickneSS; 11-01-2009 at 20:50.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-01-2009 , 07:15   Re: Need fun stocks
Reply With Quote #2

I don't understand very well but ...

is this?

Code:
/* Returns 1 if receiver hears sender via voice communication. */
native get_client_listen(receiver, sender);

/* Sets who can listen who. Function returns 0
* if for some reasons this setting can't be done. */
native set_client_listen(receiver, sender, listen);

/* Sets player godmode. If you want to disable godmode set only first parameter. */
native set_user_godmode(index, godmode = 0);

/* Returns 1 if godmode is set. */
native get_user_godmode(index);

/* Sets player armor. */
native set_user_armor(index, armor);

/* Sets player health. */
native set_user_health(index, health);

/* Move player to origin. */
native set_user_origin(index, const origin[3]);

/* Sets player rendering mode. */
native set_user_rendering(index, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16);

/* Gives item to player, name of item can start
 * with weapon_, ammo_ and item_. This event
 * is announced with proper message to all players. */
native give_item(index, const item[]);

/* Sets hit zones for player.
 * Parts of body are as bits:
 * 1   - generic
 * 2   - head
 * 4   - chest
 * 8   - stomach
 * 16  - left arm
 * 32  - right arm
 * 64  - left leg
 * 128 - right leg */
native set_user_hitzones(index = 0, target = 0, body = 255);

/* Get user hitzones. */
native get_user_hitzones(index, target);

/* Sets users max. speed. */
native set_user_maxspeed(index, Float:speed = -1.0);

/* Returns users max. speed. */
native Float:get_user_maxspeed(index);

/* Sets users gravity. */
native set_user_gravity(index, Float:gravity = 1.0);

/* Returns users gravity. */
native Float:get_user_gravity(index);

/* Spawns entity. */
native spawn(index);

/* Sets player noclip. If you want to disable noclip set only first parameter. */
native set_user_noclip(index, noclip = 0);

/* Returns 1 if noclip is set. */
native get_user_noclip(index);

/* Returns 1 if player has silent footsteps, 0 if footsteps are set to normal */
native get_user_footsteps(index);

/* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */
native set_user_footsteps(id, set = 1);

/* Strips all weapons from user. */
native strip_user_weapons(index);

/* Sets player frags. */
native set_user_frags(index, frags);
/scripting/include/fun.inc
__________________
alan_el_more is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 07:51   Re: Need fun stocks
Reply With Quote #3

nope,like ....

Example of a part of ColorChat,but in a stock

PHP Code:
ColorChat(idColor:type, const msg[], {Float,Sql,Result,_}:...)
{
    new 
message[256];

    switch(
type)
    {
        case 
NORMAL// clients scr_concolor cvar color
        
{
            
message[0] = 0x01;
        }
        case 
GREEN// Green
        
{
            
message[0] = 0x04;
        }
        default: 
// White, Red, Blue
        
{
            
message[0] = 0x03;
        }
    }

    
vformat(message[1], 251msg4);

    
// Make sure message is not longer than 192 character. Will crash the server.
    
message[192] = '^0';

    new 
teamColorChangeindexMSG_Type;
    
    if(
id)
    {
        
MSG_Type MSG_ONE;
        
index id;
    } else {
        
index FindPlayer();
        
MSG_Type MSG_ALL;
    }
    
    
team get_user_team(index);
    
ColorChange ColorSelection(indexMSG_Typetype);

    
ShowColorMessage(indexMSG_Typemessage);
        
    if(
ColorChange)
    {
        
Team_Info(indexMSG_TypeTeamName[team]);
    }

Stock....

PHP Code:
stock ColorChat(const id, const input[], any:...) {
    
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!team""^3")
    
replace_all(msg190"!team2""^0")
    
    if (
idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Jon
Veteran Member
Join Date: Dec 2007
Old 11-01-2009 , 07:53   Re: Need fun stocks
Reply With Quote #4

Use the fun natives. Not other stocks trying to reproduce them.

Edit: read this -> http://forums.alliedmods.net/showthread.php?t=40341
Jon is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 08:00   Re: Need fun stocks
Reply With Quote #5

Thanks,but i dont know how to made some things,bacause im new in this ...

Doesn't exist fun stocks?

sry 4 my bad english

Last edited by #8 SickneSS; 11-01-2009 at 08:48.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-01-2009 , 10:16   Re: Need fun stocks
Reply With Quote #6

Quote:
Originally Posted by #8 SickneSS View Post
Thanks,but i dont know how to made some things,bacause im new in this ...

Doesn't exist fun stocks?

sry 4 my bad english
Tell us what are you trying to do and we can recommend fun stocks or other modules.

PM me if you want to talk in spanish.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 11-01-2009 at 10:21.
joropito is offline
Send a message via MSN to joropito
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 10:25   Re: Need fun stocks
Reply With Quote #7

Quote:
Originally Posted by joropito View Post
Tell us what are you trying to do and we can recommend fun stocks or other modules.

PM me if you want to talk in spanish.
I need set_user_rendering,give_item and set_user_godmode stocks.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-01-2009 , 10:40   Re: Need fun stocks
Reply With Quote #8

Quote:
Originally Posted by #8 SickneSS View Post
I need set_user_rendering,give_item and set_user_godmode stocks.
So you want the file fun_stocks.inc and not the one for the module with the natives.

Try this

fun_stocks.inc
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 11:06   Re: Need fun stocks
Reply With Quote #9

OMG I LOVE YOU
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Jon
Veteran Member
Join Date: Dec 2007
Old 11-01-2009 , 18:13   Re: Need fun stocks
Reply With Quote #10

No you don't. Just include fun module and don't use these goddamn stocks. Why do you want to use them anyway?
Jon is offline
Reply



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 06:52.


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