AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Starting Weapons (https://forums.alliedmods.net/showthread.php?t=232024)

MerreBigger 12-24-2013 07:30

Starting Weapons
 
Hi All
Is This Possible ?
CT team starts whith : M4A1 , DEAGLE , FLASHBANG , KNIFE ?
Thank You

wickedd 12-24-2013 07:37

Re: Starting Weapons
 
Quote:

Originally Posted by MerreBigger (Post 2075762)
Hi All
Is This Possible ?
CT team starts whith : M4A1 , DEAGLE , FLASHBANG , KNIFE ?
Thank You

Yes it's possible.

wTf. 12-24-2013 07:40

Re: Starting Weapons
 
PHP Code:

/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "wtf."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player","FwdPlayerSpawn",1)
}
public 
FwdPlayerSpawn(id) {
    if(
is_user_alive(id) && get_user_team(id) == 2) {
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
        
give_item(id"weapon_m4a1")
        
give_item(id"weapon_deagle")
        
give_item(id"weapon_flashbang")
        
cs_set_user_bpammo(idCSW_M4A190)
        
cs_set_user_bpammo(idCSW_DEAGLE35)
    }



wickedd 12-24-2013 07:44

Re: Starting Weapons
 
You forgot "is_user_alive()".

wTf. 12-24-2013 07:46

Re: Starting Weapons
 
update.

MerreBigger 12-24-2013 08:05

Re: Starting Weapons
 
Thanks Guys ! :)

ANTICHRISTUS 12-25-2013 12:52

Re: Starting Weapons
 
an old (but working) plugin called starting weapons.
also there is a new similar one, dunno if approved or not yet.

edit: OMG, I didn't notice the title, it's the same one as the plugin I was talking about.

BLacking98 12-25-2013 13:18

Re: Starting Weapons
 
Search next time
Search next time

ANTICHRISTUS 12-25-2013 13:33

Re: Starting Weapons
 
Quote:

Originally Posted by BLacking98 (Post 2076270)

maybe I was talking about this one, to search for others keywords maybe something like: start*+weapon* or start*weapon* or just weapon* in titles.

MerreBigger 12-26-2013 09:41

Re: Starting Weapons
 
Yeah
I will ...
Thank You :3


All times are GMT -4. The time now is 20:29.

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