Cerere modificare

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
online
Membru, skill +1
Membru, skill +1
Posts: 206
Joined: 25 Mar 2010, 14:15
Detinator Steam: Da
CS Status: furien.cs1.ro
Detinator server CS: da
SteamID: pointz0r69
Has thanked: 13 times
Been thanked: 6 times

25 Jul 2012, 18:19

As vrea sa-mi modifice si mie cineva pluginul de mai jos sa schimbe acele arme cu :
La CT sa dea :
knife

1 smoke
meniu arme :
1. m4a1
2. ak47
3. shotgun
4. aug
5. famas
6. MP5 Navy
7. XM1014

La terro sa dea :
knife
1 smoke

PLUGIN :

Code: Select all

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


#define PLUGIN    "Armas"  
#define AUTHOR    "SpEeD"  
#define VERSION    "1.0"  

public plugin_init() 
{ 
    register_plugin("Furiens Weapons", "1.0", "SpEeD'") 
    
    //Hamsandwich 
    RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1) 
} 

public Player_Spawn(id) 
{ 
    if(is_user_alive(id)) 
    { 
        new CsTeams:team = cs_get_user_team(id) 
        switch(team) 
        { 
            case CS_TEAM_T: 
            { 
                strip_user_weapons(id) 
                give_item(id, "weapon_knife") 
                give_item(id, "weapon_hegrenade") //<---- 1 He grenade 
                
                give_item(id, "weapon_flashbang") //<---- 1. flash grenade 
                give_item(id, "weapon_flashbang") //<---- 2. flash grenade 
            } 
            case CS_TEAM_CT: 
            { 
                strip_user_weapons(id) 
                give_item(id, "weapon_deagle") 
                give_item(id, "weapon_hegrenade") //<---- 1 He grenade 
                give_item(id, "weapon_flashbang") //<---- 1. flash grenade 
                give_item(id, "weapon_flashbang") //<---- 2. flash grenade
                give_item(id, "weapon_knife") 
                new menu = menu_create("XX", "menu_handler");  
                
                menu_additem(menu, "AK47", "1", 0);  
                menu_additem(menu, "M4A1", "2", 0);  
                menu_additem(menu, "MP5 Navy", "3", 0);  
                menu_additem(menu, "XM1014", "4", 0);   
                menu_additem(menu, "M3", "5", 0);  
                menu_additem(menu, "AWP ", "6", 0);  
                
                menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);  
                
                menu_display(id, menu, 0);  
                
            }
        }
    }  
}
public menu_handler(id, menu, item)  
{  
    if( item == MENU_EXIT )  
    {  
        menu_destroy(menu);  
        return PLUGIN_HANDLED;  
    }  
    new data[6], iName[64];  
    new access, callback;  
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);  
    new key = str_to_num(data);  
    
    switch(key)  
    {  
        case 1:  
        {  
            give_item(id, "weapon_ak47")  
            
            cs_set_user_bpammo(id,CSW_AK47,90)    
            
        }  
        case 2:  
        {  
            give_item(id, "weapon_m4a1")  
            
            cs_set_user_bpammo(id,CSW_M4A1,90)    
            
        }  
        case 3:   
        {  
            give_item(id, "weapon_mp5navy")  
            
            cs_set_user_bpammo(id,CSW_MP5NAVY,120)    
            
        }  
        case 4:   
        {  
            give_item(id, "weapon_xm1014")  
            
            cs_set_user_bpammo(id,CSW_XM1014,32)    
            
        }  
        case 5:   
        {  
            
            give_item(id, "weapon_m3")  
            
            cs_set_user_bpammo(id,CSW_M3,32)    
            
        }  
        case 6:   
        {  
            give_item(id, "weapon_awp")  
            
            
            cs_set_user_bpammo(id,CSW_AWP,35)   
        }  
    }  
    
    
    
    menu_destroy(menu);  
    return PLUGIN_HANDLED;  
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2070\\ f0\\ fs16 \n\\ par }
*/
Image
Image
Image
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

25 Jul 2012, 18:42

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <amxmisc> 
#include <hamsandwich>


#define PLUGIN    "Armas" 
#define AUTHOR    "SpEeD" 
#define VERSION    "1.0" 

public plugin_init()
{
    register_plugin("Furiens Weapons", "1.0", "SpEeD'")
   
    //Hamsandwich
    RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
}

public Player_Spawn(id)
{
    if(is_user_alive(id))
    {
        new CsTeams:team = cs_get_user_team(id)
        switch(team)
        {
            case CS_TEAM_T:
            {
                strip_user_weapons(id)
                give_item(id, "weapon_knife")
                give_item(id, "weapon_smokegrenade")
            }
            case CS_TEAM_CT:
            {
                strip_user_weapons(id)
                give_item(id, "weapon_knife")
                give_item(id, "weapon_smokegrenade")
                new menu = menu_create("CT - Guns Menu", "menu_handler"); 
               
                menu_additem(menu, "M4A1", "1", 0); 
                menu_additem(menu, "AK47", "2", 0);
                menu_additem(menu, "M3", "3", 0); 
                menu_additem(menu, "Aug", "4", 0);
                menu_additem(menu, "Famas", "5", 0);
                menu_additem(menu, "MP5 Navy", "6", 0); 
                menu_additem(menu, "XM1014", "7", 0);   
               
                menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); 
               
                menu_display(id, menu, 0); 
               
            }
        }
    } 
}
public menu_handler(id, menu, item) 
{ 
    if( item == MENU_EXIT ) 
    { 
        menu_destroy(menu); 
        return PLUGIN_HANDLED; 
    } 
    new data[6], iName[64]; 
    new access, callback; 
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); 
    new key = str_to_num(data); 
   
    switch(key) 
    { 
        case 1: 
        { 
            give_item(id, "weapon_m4a1") 
           
            cs_set_user_bpammo(id,CSW_M4A1,90)   
           
        } 
        case 2: 
        { 
            give_item(id, "weapon_ak47") 
           
            cs_set_user_bpammo(id,CSW_AK47,90)   
           
        } 
        case 3:   
        { 
           
            give_item(id, "weapon_m3") 
           
            cs_set_user_bpammo(id,CSW_M3,32)   
           
        } 
        case 4:   
        { 
            give_item(id, "weapon_aug") 
           
           
            cs_set_user_bpammo(id,CSW_AUG,90)   
        } 
        case 5:   
        { 
            give_item(id, "weapon_famas") 
           
           
            cs_set_user_bpammo(id,CSW_FAMAS,90)   
        } 

        case 6:   
        { 
            give_item(id, "weapon_mp5navy") 
           
            cs_set_user_bpammo(id,CSW_MP5NAVY,120)   
           
        } 
        case 7:   
        { 
            give_item(id, "weapon_xm1014") 
           
            cs_set_user_bpammo(id,CSW_XM1014,32)   
           
        }
    } 
   
   
   
    menu_destroy(menu); 
    return PLUGIN_HANDLED; 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\ rtf1\ ansi\ deff0{\ fonttbl{\ f0\ fnil Tahoma;}}n\ viewkind4\ uc1\ pard\ lang2070\ f0\ fs16 n\ par }
*/
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
ik1d0x@redfear.ro
krystann
Membru eXtream
Membru eXtream
Posts: 2552
Joined: 16 May 2009, 10:37
Detinator Steam: Nu
CS Status: Vine criza!
Reputatie: Fost moderator
Has thanked: 321 times
Been thanked: 141 times

25 Jul 2012, 21:32

Mutat la Programarea CS-ului-Cereri
User avatar
online
Membru, skill +1
Membru, skill +1
Posts: 206
Joined: 25 Mar 2010, 14:15
Detinator Steam: Da
CS Status: furien.cs1.ro
Detinator server CS: da
SteamID: pointz0r69
Has thanked: 13 times
Been thanked: 6 times

25 Jul 2012, 21:47

K1d0x wrote:
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <amxmisc> 
#include <hamsandwich>


#define PLUGIN    "Armas" 
#define AUTHOR    "SpEeD" 
#define VERSION    "1.0" 

public plugin_init()
{
    register_plugin("Furiens Weapons", "1.0", "SpEeD'")
   
    //Hamsandwich
    RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
}

public Player_Spawn(id)
{
    if(is_user_alive(id))
    {
        new CsTeams:team = cs_get_user_team(id)
        switch(team)
        {
            case CS_TEAM_T:
            {
                strip_user_weapons(id)
                give_item(id, "weapon_knife")
                give_item(id, "weapon_smokegrenade")
            }
            case CS_TEAM_CT:
            {
                strip_user_weapons(id)
                give_item(id, "weapon_knife")
                give_item(id, "weapon_smokegrenade")
                new menu = menu_create("CT - Guns Menu", "menu_handler"); 
               
                menu_additem(menu, "M4A1", "1", 0); 
                menu_additem(menu, "AK47", "2", 0);
                menu_additem(menu, "M3", "3", 0); 
                menu_additem(menu, "Aug", "4", 0);
                menu_additem(menu, "Famas", "5", 0);
                menu_additem(menu, "MP5 Navy", "6", 0); 
                menu_additem(menu, "XM1014", "7", 0);   
               
                menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); 
               
                menu_display(id, menu, 0); 
               
            }
        }
    } 
}
public menu_handler(id, menu, item) 
{ 
    if( item == MENU_EXIT ) 
    { 
        menu_destroy(menu); 
        return PLUGIN_HANDLED; 
    } 
    new data[6], iName[64]; 
    new access, callback; 
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); 
    new key = str_to_num(data); 
   
    switch(key) 
    { 
        case 1: 
        { 
            give_item(id, "weapon_m4a1") 
           
            cs_set_user_bpammo(id,CSW_M4A1,90)   
           
        } 
        case 2: 
        { 
            give_item(id, "weapon_ak47") 
           
            cs_set_user_bpammo(id,CSW_AK47,90)   
           
        } 
        case 3:   
        { 
           
            give_item(id, "weapon_m3") 
           
            cs_set_user_bpammo(id,CSW_M3,32)   
           
        } 
        case 4:   
        { 
            give_item(id, "weapon_aug") 
           
           
            cs_set_user_bpammo(id,CSW_AUG,90)   
        } 
        case 5:   
        { 
            give_item(id, "weapon_famas") 
           
           
            cs_set_user_bpammo(id,CSW_FAMAS,90)   
        } 

        case 6:   
        { 
            give_item(id, "weapon_mp5navy") 
           
            cs_set_user_bpammo(id,CSW_MP5NAVY,120)   
           
        } 
        case 7:   
        { 
            give_item(id, "weapon_xm1014") 
           
            cs_set_user_bpammo(id,CSW_XM1014,32)   
           
        }
    } 
   
   
   
    menu_destroy(menu); 
    return PLUGIN_HANDLED; 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\ rtf1\ ansi\ deff0{\ fonttbl{\ f0\ fnil Tahoma;}}n\ viewkind4\ uc1\ pard\ lang2070\ f0\ fs16 n\ par }
*/
Mulumesc , merge :*
Image
Image
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests