Raised This Month: $ Target: $400
 0% 

Noclip and weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-06-2006 , 22:25  
Reply With Quote #10

Oh, you want to do it on everyone?

Here, use @ALL as the target:

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> new PLUGIN[] = "Sharks and Minnos" new VERSION[] = "Beta" new AUTHOR[] ="*[9mm]* Thomas" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_snm","admin_snm",ADMIN_LEVEL_C,"<target> - gives items for sharks & minnows") } public admin_smn(id,level,cid) {     if ( !cmd_access(id,level,cid,2) )         return PLUGIN_HANDLED         new szArg[33]     read_argv(1,szArg,32)     if(equali(szArg,"@ALL"))     {         server_cmd("mp_restartround 1")         set_task(1.5,"fnDoAll")         return PLUGIN_HANDLED     }         new iTarget = cmd_target(id,szArg,1)     if(!iTarget)         return PLUGIN_HANDLED             new CsTeams:csTeam = cs_get_user_team(iTarget)         if(csTeam == CS_TEAM_T)     {         give_item(id,"weapon_elite")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")         give_item(id,"ammo_9mm")     }     else if(csTeam == CS_TEAM_CT)         set_user_noclip(iTarget,1)             client_print(id,print_console,"User set for game.")         return PLUGIN_HANDLED }     public fnDoAll() {     new iPlayers[32],iPlayersnum,CsTeams:csTeam,iPlayer     get_players(iPlayers,iPlayersnum,"a")         for(new iCount = 0;iCount < iPlayersnum;iCount++)     {         iPlayer = iPlayers[iCount]         csTeam = cs_get_user_team(iPlayer)         if(csTeam == CS_TEAM_T)             set_user_noclip(iPlayer,1)         else if(csTeam == CS_TEAM_CT)         {             give_item(iPlayer,"weapon_elite")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")             give_item(iPlayer,"ammo_9mm")         }     } }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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 16:37.


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