AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how do I make for a player cannot be reload? (https://forums.alliedmods.net/showthread.php?t=89293)

alan_el_more 04-04-2009 16:14

how do I make for a player cannot be reload?
 
how do i make for a player cannot be recharged and have 1000 bullets?
thanks in advance :D

ot_207 04-04-2009 17:23

Re: help with this pls
 
Quote:

Originally Posted by alan_el_more (Post 797413)
how do i make for a player cannot be recharged and have 1000 bullets?
thanks in advance :D

cs_set_weapon_ammo(ent,ammo)

Read the coments. It will tell you how to use it.

alan_el_more 04-04-2009 17:44

Re: help with this pls
 
Quote:

Originally Posted by ot_207 (Post 797482)
cs_set_weapon_ammo(ent,ammo)

Read the coments. It will tell you how to use it.

thanks ot :D

and

how do I make for a player cannot be reload?

ConnorMcLeod 04-04-2009 17:48

Re: help with this pls
 
Fix your title please.

alan_el_more 04-04-2009 18:12

Re: help with this pls
 
Quote:

Originally Posted by ConnorMcLeod (Post 797511)
Fix your title please.

ready

Exolent[jNr] 04-04-2009 19:27

Re: how do I make for a player cannot be reload?
 
Code:
public plugin_init() {     register_forward(FM_CmdStart, "FwdCmdStart"); } public FwdCmdStart(client, uc_handle, seed) {     static button;     if( is_user_alive(client) && ((button = get_uc(uc_handle, UC_Buttons)) & IN_RELOAD) )     {         set_uc(uc_handle, UC_Buttons, button & ~IN_RELOAD);         return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; }

alan_el_more 04-04-2009 19:36

Re: how do I make for a player cannot be reload?
 
thanks exolent :D


All times are GMT -4. The time now is 02:19.

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