AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   2 questions (https://forums.alliedmods.net/showthread.php?t=74504)

Spin7ion 07-20-2008 02:54

2 questions
 
Hi!
First:How remove user shadow
Second:How disalow user to pick up weapons?

hzqst 07-20-2008 03:51

Re: 2 questions
 
1st: settings --multiplayer --.....advanced -- Open the player shadow
you can also find it in cfg files
2:strip user's weapons then he won't be able to pick up any weapons(except HE,smoke,flashbang)

Spin7ion 07-20-2008 04:32

Re: 2 questions
 
1) with amx in game?
2)no! i strip, give them knives, and they can pick up weapons from ground

hzqst 07-20-2008 04:49

Re: 2 questions
 
1
new i
for (i=0;i<=get_maxplayers(); i++)
if(is_user_connected(id))
client_cmd(id,cl_shadows 0)


2 CurWeapon --- ↓
if(xxxx)

Quote:

new parm[2]
parm[0] = id
set_task(1.0,"strip",0,parm,2)

Quote:

public strip(parm[]) {
new id = parm[0]
strip_user_weapons(id)
give_item(id,"weapon_knife")
}

Spin7ion 07-20-2008 05:18

Re: 2 questions
 
But how it works in zombie mod?
is there a timer?

hzqst 07-20-2008 07:27

Re: 2 questions
 
there're many people writing zm mod plugins-_-include me-_-
if terrorists are zms .CTs are humans
Quote:

new clip,ammo
new weapon = get_user_weapon(id,clip,ammo)
if(get_user_team(id) == 1 && wep=29)
new parm[2]
parm[0] = id
set_task(1.0,"strip",0,parm,2)

Spin7ion 07-20-2008 13:44

Re: 2 questions
 
Can you explain me this code? plz


All times are GMT -4. The time now is 05:38.

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