Raised This Month: $ Target: $400
 0% 

I need code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-12-2011 , 10:15   I need code
Reply With Quote #1

I need code for my plugin when client enter in Terrorist team he will be disarmed, but when he enter in CTerrorist team he got unlimited ammo. Thanks for helpers.
__________________
Artifact is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-12-2011 , 11:22   Re: I need code
Reply With Quote #2

http://forums.alliedmods.net/forumdisplay.php?f=12 is for the needy.
__________________
Hunter-Digital is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-12-2011 , 12:41   Re: I need code
Reply With Quote #3

No look, I ask there because I need only this part of code...
__________________
Artifact is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-12-2011 , 12:53   Re: I need code
Reply With Quote #4

Hook spawn. Strip user weapons if on Terrorist team. Set unlimited ammo if on Counter-Terrorist team (probably by setting a variable for the player to true depending on the type of script you use, and setting it false of on Terrorist). You can get unlimited ammo script from a plugin that gives unlimited ammo.
__________________
fysiks is online now
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-13-2011 , 08:28   Re: I need code
Reply With Quote #5

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN    "New Plugin"
#define AUTHOR    "Unknown"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
RegisterHam(Ham_Spawn,"player","playerSpawn");
}

public 
playerSpawn(id)
{    
    new 
CsTeams:team;
    
    
team cs_get_user_team(id);
    
    switch(
team)
    {
        case(
CS_TEAM_T):
        {
            
// Whatever
        
}
        case(
CS_TEAM_CT):
        {
            
// Something else
        
}
    }

DjOptimuS is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-13-2011 , 10:14   Re: I need code
Reply With Quote #6

I know this too, but how to add unammo in all rounds for CT and Knife for T...??
__________________
Artifact is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-13-2011 , 10:46   Re: I need code
Reply With Quote #7

http://forums.alliedmods.net/showthread.php?p=848357

and add a booléen.
__________________
You can do anything you set your mind to, man.

Devil259 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 23:25.


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