Raised This Month: $51 Target: $400
 12% 

SneakingTerrorists Need ideas(look last reply)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 10:20   SneakingTerrorists Need ideas(look last reply)
Reply With Quote #1

Hey im trying to get my plugin work when compiling everything is fine but all things not working like : terros are 55% invisible ct's get only m4...
and i was thinking is there way to set invisibility with hamsandwich?
heres my sourcecode
PHP Code:
/* (((((((((((((|))))))))))))           
 (  =======       =========== )
 (  |                  |      )
 (  |                  |      ) 
 (  =======            |      )
 (         |           |      )
 (         |           |      )
 (  =======        |      )
   (((((((((((((|))))))))))))  (C) platEE 
 */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>
 
#define PLUGIN "SneakingTerrorists"
#define VERSION "1.0"
#define AUTHOR "platEE"
new plugin_on
new gravityprice
new hpprice
new armorprice
new silentwalkprice
new const weap[34][] = 
{
  
"usp""glock""deagle""p228""elites""fn57""m3""xm1014""mp5""tmp""p90""mac10""ump45",
  
"ak47""galil""famas""sg552""m4a1""aug""scout""awp""g3sg1""sg550""m249""vest""vesthelm",
  
"flash""hegren""sgren""defuser""nvgs""shield""primammo""secammo" 
}
new const 
weap2[34][] = 
{
   
"km45""9x19mm""nighthawk""228compact""elites""fiveseven""12gauge""autoshotgun""smg""mp",
   
"c90""mac10""ump45""cv47""defender""clarion""krieg552""m4a1""bullpup""scout""magnum",
   
"d3au1""krieg550""m249""vest""vesthelm""flash""hegren""sgren""defuser""nvgs""shield",
   
"primammo""secammo"
}
 
public 
plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
//hams
 
RegisterHam(Ham_Spawn,"player","ham_player_spawn",1)
 
RegisterHam(Ham_Spawn"player","ham_playerspawn",1)
 
//menu things
         
register_menucmd(register_menuid("\rUltraShop4000:"), 1023"SMenu1")
         
register_clcmd("say /shopmenu","GlowMenu")
 
//cvars
 
plugin_on register_cvar("st_enabled""1")
 
gravityprice register_cvar("st_gravity_price""4000")
 
hpprice register_cvar("st_gravity_price""4000")
 
armorprice register_cvar("st_gravity_price""2000")
 
silentwalkprice register_cvar("st_silentwalk_price""4000")
 
//cmd's
 
register_clcmd("cl_rebuy""block_cmd");
         
register_clcmd("cl_autobuy""block_cmd");
 
//end of plugin_init
}
//hams
public ham_player_spawn(iClient)
{
 new 
CsTeams:team cs_get_user_team(iClient)
 if (
team == CS_TEAM_T)
         {
 
strip_user_weapons(iClient)
 
give_item(iClient"weapon_knife");
 
set_user_rendering(iClient,kRenderFxNone,255,255,255,kRenderNormal,45
         }
}  
 
 
public 
ham_playerspawn(iClient)
{
           new 
CsTeams:team cs_get_user_team(iClient)
           if (
team == CS_TEAM_CT)
 {
           
strip_user_weapons(iClient)
           
give_item(iClient"weapon_m4")
 
}
}
//end of ham's
//gravity and others
public gravity(id)
{
       new 
money cs_get_user_money(id)
 
        if (
plugin_on == 1)
        {
        
set_user_gravity(id,0.50)
        
client_print(idprint_chat,"Have fun with gravity!")
        
cs_set_user_money(idmoney gravityprice)
    }
 
}
public 
hp(id)
{
 new 
money cs_get_user_money(id)
 
 if (
plugin_on == 1)
 {
  
set_user_health(id150.0)
  
client_print(idprint_chat"Have fun with 150 health")
 
  
cs_set_user_money(idmoney hpprice)
 }
}
public 
armor(id)
{
 new 
money cs_get_user_money(id)
 
 if (
plugin_on == 1)
 {
  
set_user_armor(id150.0)
  
client_print(idprint_chat"Have fun with 150 armor")
 
  
cs_set_user_money(idmoney armorprice)
 }
}
public 
silentwalk(id)
{
 new 
money cs_get_user_money(id)
 
 if(
plugin_on == 1)
 {
  
set_user_footsteps(id1)
  
client_print(idprint_chat"Have fun with silent footsteps")
 
  
cs_set_user_money(idmoney silentwalkprice)
 }
}
 
//gravity and others
//shop settings
public Ultrashop4000(id){
  new 
szMenuBody[512]
  new 
keys
  
new len
  len 
format(szMenuBody,511,"\rUltraShop4000:^n" )
  
len += formatszMenuBody[len],511-len,"^n\w1. Gravity-4000" )
  
len += formatszMenuBody[len],511-len,"^n\w2. 150 hp-4000" )
  
len += formatszMenuBody[len],511-len,"^n\w3. 150 armor-2000" )
  
len += formatszMenuBody[len],511-len,"^n\w4. silentwalk-4000" )
  
len += formatszMenuBody[len],511-len,"^n^n\d0. Exit" )
  
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
  
show_menuidkeysszMenuBody, -)

public 
SMenu1(id,key) {
 switch(
key) {
  case 
0gravity(id)
  case 
1hp(id)
  case 
2armor(id)
  case 
3silentwalk(id)
  case 
9: return PLUGIN_CONTINUE
 
}
 return 
PLUGIN_HANDLED
}
//end of stop settings
 
//block buying
public block_cmd(id)
{
    return 
PLUGIN_HANDLED_MAIN;
}  
public 
client_command(id
{
     new 
arg[13];
     
read_argv(0arg 12)
 
     for (new 
034a++)
     {
     if (
equalweap[a], arg ) || equalweap2[a], arg ) || equal("buy"arg) || equal("buyequip"arg) ||equal("autobuy"arg)) 
     {
         return 
PLUGIN_HANDLED;
 
}  
}
     return 
PLUGIN_CONTINUE;
}
//end of block buying 
and need code to cts have only 60 bullets on m4
I get these errors :
[AMXX] Run time error 10 (plugin "sneakingterrorists.amxx") (native "cs_get_user_team") - debug not enabled!
L 09/30/2008 - 15:42:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
__________________
ALWAYS leave your name when giving +Karma

Last edited by platEE; 10-01-2008 at 14:18.
platEE is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-30-2008 , 12:00   Re: SneakingTerrorists
Reply With Quote #2

enable debug
__________________
xPaw is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 12:26   Re: SneakingTerrorists
Reply With Quote #3

Okay, i did it now saying this in my console:
L 09/30/2008 - 19:19:44: [CSTRIKE] Invalid player 1
L 09/30/2008 - 19:19:45: [AMXX] Displaying debug trace (plugin "sneakingterrorists.amxx")
L 09/30/2008 - 19:19:45: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 09/30/2008 - 19:19:45: [AMXX] [0] php3okFpu.sma::ham_player_spawn (line 69)
L 09/30/2008 - 19:19:45: [CSTRIKE] Invalid player 1
L 09/30/2008 - 19:19:45: [AMXX] Displaying debug trace (plugin "sneakingterrorists.amxx")
L 09/30/2008 - 19:19:45: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 09/30/2008 - 19:19:45: [AMXX] [0] php3okFpu.sma::ham_playerspawn (line 82)
??

and can u edit this so players go 55% invisibile?set_user_rendering(iClient,kRenderFxNone,255,255,255,kRenderNormal,45)

Thank you it means +karma
__________________
ALWAYS leave your name when giving +Karma

Last edited by platEE; 09-30-2008 at 12:29.
platEE is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-30-2008 , 12:35   Re: SneakingTerrorists
Reply With Quote #4

try to replace in spawns the
PHP Code:
 new CsTeams:team cs_get_user_team(iClient)
 if (
team == CS_TEAM_T
with
PHP Code:
if (get_user_team(iClient) == 1
1 == T
2 == CT
__________________
xPaw is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 12:38   Re: SneakingTerrorists
Reply With Quote #5

can u edit this so players go 55% invisibile?set_user_rendering(iClient,kRenderFxNone,255,255,255,kRenderNormal,45)

Thank you it means +karma
__________________
ALWAYS leave your name when giving +Karma
platEE is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-30-2008 , 12:42   Re: SneakingTerrorists
Reply With Quote #6

i think it will
Quote:
set_user_rendering(iClient,kRenderFxNone,255, 255,255,kRenderNormal,130)
__________________
xPaw is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 12:50   Re: SneakingTerrorists
Reply With Quote #7

Thanks xPaw u are always so helpful!!!!+karma
__________________
ALWAYS leave your name when giving +Karma
platEE is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 13:51   Re: SneakingTerrorists
Reply With Quote #8

SORRY DOUBLE POST .-,-

I was thinking how to prevent terrorists from picking up a weapon is it possible??
__________________
ALWAYS leave your name when giving +Karma
platEE is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-30-2008 , 13:54   Re: SneakingTerrorists
Reply With Quote #9

Quote:
Originally Posted by platEE View Post
Thanks xPaw u are always so helpful!!!!
thanks

Quote:
Originally Posted by platEE
I was thinking how to prevent terrorists from picking up a weapon is it possible??
check other theard near your in Scripting Help too
__________________
xPaw is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 09-30-2008 , 13:56   Re: SneakingTerrorists
Reply With Quote #10

public func_mutant_noweapon_pickup(entity, client)
{
new
is_mutant[33]
is_mutant[client] = cs_get_user_team(client) == CS_TEAM_T ? true : false
if (!is_user_connected(client) || !is_user_alive(client))
{
new
entity_class[32]
pev(entity, pev_classname, entity_class, 31)
if(
is_mutant[client])
{
if (
equal(entity_class, "weaponbox"))
{
return
FMRES_SUPERCEDE
}
}
}

return
FMRES_IGNORED
}

this one?? but im not sure what must edit becuz theres that mutant thing
__________________
ALWAYS leave your name when giving +Karma
platEE is offline
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 11:34.


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