AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need code (https://forums.alliedmods.net/showthread.php?t=159047)

Artifact 06-12-2011 10:15

I need code
 
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.

Hunter-Digital 06-12-2011 11:22

Re: I need code
 
http://forums.alliedmods.net/forumdisplay.php?f=12 is for the needy.

Artifact 06-12-2011 12:41

Re: I need code
 
No look, I ask there because I need only this part of code...

fysiks 06-12-2011 12:53

Re: I need code
 
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.

DjOptimuS 06-13-2011 08:28

Re: I need code
 
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
        
}
    }



Artifact 06-13-2011 10:14

Re: I need code
 
I know this too, but how to add unammo in all rounds for CT and Knife for T...??

Devil259 06-13-2011 10:46

Re: I need code
 
http://forums.alliedmods.net/showthread.php?p=848357

and add a booléen.


All times are GMT -4. The time now is 23:25.

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