AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] How to replace user bullets and guns? (https://forums.alliedmods.net/showthread.php?t=222246)

JoooN 07-31-2013 13:39

[HELP] How to replace user bullets and guns?
 
Hi so this is my small plugin, im making very small Mod (That only replaces Models) so this is my small code:
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Me"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
gun[] = models/soccergun/gun.mdl
    
new bullet[] = models/soccergun/bullets.mdl
    
static const TeamMascots[2][] = {
    
"models/terrgunmodel.mdl"
    "models/ctgunmodel.mdl"


Can someone help me so each gun model for each team (Separate guns for CT and T)
And I need to do the same with bullets, too, so each team will have their own gun and bullet.
Thanks :D
EDIT: Not replace maybe, but use those models instead of the original ones.


All times are GMT -4. The time now is 15:59.

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