Raised This Month: $ Target: $400
 0% 

PLEASE TRASH


Post New Thread Reply   
 
Thread Tools Display Modes
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-20-2005 , 17:30  
Reply With Quote #11

wow u can copy someones code,http://forums.alliedmods.net/showthread.php?t=9430
thank you for copying my plugin
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Tyler_durden (gsr)
Junior Member
Join Date: Apr 2005
Old 06-25-2005 , 04:50  
Reply With Quote #12

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

public plugin_modules()
{
    require_module("cstrike")
    require_module("fun")
    
}

public plugin_init() {
    register_plugin("Weapon","1.1","Fire and Tyler")
    register_cvar("amx_weapon","1")
    register_clcmd("say /m4","m4a1",ADMIN_LEVEL_A,"- Gives m4")
    register_clcmd("say /ak","ak47",ADMIN_LEVEL_A,"- Gives ak")
    register_clcmd("say /deagle","deagle",ADMIN_LEVEL_A,"- Gives deagle")
    register_clcmd("say /mp5","mp5navy",ADMIN_LEVEL_A,"- Gives mp5navy")
    register_clcmd("say /smoke","smoke",ADMIN_LEVEL_A,"- Gives smoke")
    register_clcmd("say /flash","flash",ADMIN_LEVEL_A,"- Gives flash")
    register_clcmd("say /he","he",ADMIN_LEVEL_A,"- Gives he")
    register_clcmd("say /awp","awp",ADMIN_LEVEL_A,"- Gives awp")
    register_clcmd("say /all","all",ADMIN_LEVEL_B,"- Gives all")
    register_clcmd("say /scout","scout",ADMIN_LEVEL_A,"- Gives scout")
    register_clcmd("say /nvg","nvg",ADMIN_LEVEL_A,"- Gives Nightvision")
    register_clcmd("say /krieg","krieg",ADMIN_LEVEL_A,"- Gives Krieg")
    register_clcmd("say /autosnipe","autosnipe",ADMIN_LEVEL_A,"- Gives autosnipe")
    register_clcmd("say /noclip","Noclip",ADMIN_LEVEL_A,"- Gives Noclip")

}

public m4a1(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_m4a1")
        cs_set_user_bpammo(id, CSW_M4A1, 90)
    }

    return PLUGIN_HANDLED
}


public ak47(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_ak47")
        cs_set_user_bpammo(id, CSW_AK47, 90)
    }

    return PLUGIN_HANDLED
}


public deagle(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_deagle")
        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
    }

    return PLUGIN_HANDLED
}


public mp5navy(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_mp5navy")
        cs_set_user_bpammo(id, CSW_MP5NAVY, 120)
    }

    return PLUGIN_HANDLED
}


public smoke(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_smokegrenade")
    }

    return PLUGIN_HANDLED
}


public flash(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_flashbang")
    }

    return PLUGIN_HANDLED
}

public he(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_hegrenade")
    }

    return PLUGIN_HANDLED
}

public awp(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_awp")
        cs_set_user_bpammo(id, CSW_AWP, 30)
    }

    return PLUGIN_HANDLED
}

public scout(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_scout")
        cs_set_user_bpammo(id, CSW_SCOUT, 30)
    }

    return PLUGIN_HANDLED
}

public nvg(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_nightvision")
    }

    return PLUGIN_HANDLED
}

public autosnipe(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_g3sg1")
        cs_set_user_bpammo(id, CSW_G3SG1, 90)
    }

    return PLUGIN_HANDLED
}

public Krieg(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_p228")
        cs_set_user_bpammo(id, CSW_P228, 90)
    }

    return PLUGIN_HANDLED
}


public Noclip(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        set_user_noclip (id,1)
    }

    return PLUGIN_HANDLED
}


public all(id,lvl,cid) {

    if(!cmd_access(id,lvl,cid,2)) {
        return PLUGIN_HANDLED
    }

    if (get_cvar_num("amx_weapon") !=0) {
        give_item(id,"weapon_m4a1")
        cs_set_user_bpammo(id, CSW_M4A1, 90)
        give_item(id,"weapon_ak47")
        cs_set_user_bpammo(id, CSW_AK47, 90)
        give_item(id,"weapon_deagle")
        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
        give_item(id,"weapon_mp5navy")
        cs_set_user_bpammo(id, CSW_MP5NAVY, 120)
        give_item(id,"weapon_smokegrenade")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_hegrenade")
        give_item(id,"weapon_awp")
        cs_set_user_bpammo(id, CSW_AWP, 30)
    }

    return PLUGIN_HANDLED
}
added weapons : and noclip
__________________
IM on xooit.xooit.com
Tyler_durden (gsr) is offline
Send a message via MSN to Tyler_durden (gsr)
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-25-2005 , 07:42  
Reply With Quote #13

You Never Even asked if i wanted this... i could have added weapons if you want... but i know youer new and you can use the coding exp.... thank you but im comeing out with a beta version
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-25-2005 , 07:48  
Reply With Quote #14

This could be done with less code if you would just hook the "say" command..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-25-2005 , 09:45  
Reply With Quote #15

Ok forgive the a$$hole post that was here i was having a bad day nvm.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-25-2005 , 09:52  
Reply With Quote #16

colm down , im talking about this kid: Tyler_durden (gsr)
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
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 00:27.


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