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

[TF2] Have Some Ballz! (sandman balls)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1889
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    14 
    Plugin Description:
    Give a player(s) any number of sandman balls!
    Old 08-17-2010 , 00:59   [TF2] Have Some Ballz! (sandman balls)
    Reply With Quote #1

    [TF2] Have Some Ballz!
    Version 1.0



    Description:
    Give a player or players any number of sandman balls!
    (Requires they have a Sandman!)

    Commands:
    Admin:
    sm_giveballs <target> <number>
    Sets the number of balls <target> has to <number>.

    Cvars:
    sm_bawlz_version
    Install Instructions:
    1. Place HaveSomeBallz.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    Beware having to many balls active at a time, it will cause server/client lag and possibly crashes.

    See Also:
    [TF2] Have Some Piss!
    ToDo:
    • Add max balls cvar to set an upper cap of how many balls can be given.

    Version History:
    • V1.0
      • Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (HaveSomeBallz.sp - 3181 views - 2.4 KB)
    __________________

    Last edited by DarthNinja; 08-24-2010 at 21:42.
    DarthNinja is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 08-17-2010 , 04:00   Re: [TF2] Have Some Ballz!
    Reply With Quote #2

    You have some balls!
    __________________
    retsam is offline
    Savier
    New Member
    Join Date: Aug 2010
    Old 08-17-2010 , 11:58   Re: [TF2] Have Some Ballz!
    Reply With Quote #3

    I want "Have Some Heads" plugin =) pls
    Savier is offline
    DarkEnergy
    SourceMod Donor
    Join Date: Apr 2008
    Location: Georgia Tech, MSECE
    Old 08-17-2010 , 15:53   Re: [TF2] Have Some Ballz!
    Reply With Quote #4

    awesome balls
    __________________
    War3:Source Developer
    "Your CPU is just a bunch of Muxes"
    DarkEnergy is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-17-2010 , 17:31   Re: [TF2] Have Some Ballz!
    Reply With Quote #5

    Quote:
    Originally Posted by Savier View Post
    I want "Have Some Heads" plugin =) pls
    I wanna do that and a "Have some sandviches!" one as well.
    __________________
    DarthNinja is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 08-18-2010 , 03:13   Re: [TF2] Have Some Ballz!
    Reply With Quote #6

    Quote:
    Originally Posted by Savier View Post
    I want "Have Some Heads" plugin =) pls
    something like that -_-
    PHP Code:
    #include <sourcemod>
    #include <tf2>

    new headsOffset;

    public 
    Plugin:myinfo=
    {
        
    name "[TF2] Unnamed",
        
    author "Leonardo",
        
    description "N/A",
        
    version "0.0.0",
        
    url "N/A",
    }

    public 
    OnPluginStart()
    {
        new 
    String:sGameType[16];
        
    GetGameFolderName(sGameTypesizeof(sGameType));
        new 
    bool:IsTeamFortress StrEqual(sGameType"tf"true);
        if(!
    IsTeamFortress)
            
    SetFailState("This plugin is Team Fortress 2 only.");
        
        
    headsOffset FindSendPropInfo("CTFPlayer""m_iDecapitations");
        
        
    HookEvent("player_spawn"Event_PlayerSpawn);
    }

    public 
    Event_PlayerSpawn(Handle:hEventString:strName[], bool:bDontBroadcast)
    {
        new 
    iClient GetClientOfUserId(GetEventInt(hEvent"userid"));
        if(
    IsClientInGame(iClient) && IsPlayerAlive(iClient))
            if((
    headsOffset != -1) && (GetEntProp(iClientProp_Send"m_iClass") == 4))
            {
                
    SetEntData(iClientheadsOffset3);
                
    TF2_AddCondition(iClientTFCond:TFCond_DemoBuff, -1.0);
            }

    PS: thanks, DarthNinja
    __________________

    Last edited by Leonardo; 08-18-2010 at 03:26.
    Leonardo is offline
    lionheart1066
    Senior Member
    Join Date: Aug 2009
    Old 08-20-2010 , 08:18   Re: [TF2] Have Some Ballz!
    Reply With Quote #7

    Lots and lots of balls
    lionheart1066 is offline
    Pevans
    Junior Member
    Join Date: Jun 2010
    Location: Washington
    Old 08-29-2010 , 07:27   Re: [TF2] Have Some Ballz! (sandman balls)
    Reply With Quote #8

    Is it possible to make it so that players are automatically given a certain number of balls upon joining the server?
    Pevans is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-29-2010 , 23:00   Re: [TF2] Have Some Ballz! (sandman balls)
    Reply With Quote #9

    Quote:
    Originally Posted by Pevans View Post
    Is it possible to make it so that players are automatically given a certain number of balls upon joining the server?
    Well, if they spawn as a scout, sure.
    __________________
    DarthNinja is offline
    TFC
    Member
    Join Date: Jul 2010
    Old 01-27-2011 , 08:22   Re: [TF2] Have Some Ballz! (sandman balls)
    Reply With Quote #10

    i can give scout class automatically 5 balls on respawn (at spawn)?
    TFC is offline
    Reply


    Thread Tools
    Display Modes

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


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