AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   a few quesition! (https://forums.alliedmods.net/showthread.php?t=46565)

k007 10-28-2006 23:53

a few quesition!
 
1. if i give a person a nade how could i make him not be able to throw it, or how could i give a person a v_ weapon view for example if he use +use or something
2.if i want to spawn something in front of a player and i have the player origin what should i change in it to make it in front of him..
3. thats it thx lulz!

Nostrodamous 10-29-2006 02:16

Re: a few quesition!
 
what do you mean by now throw it ? if you set_user_bpammo(id,CSW_HEGRENADE,0) it will maek him not throw it (but then it will remove it )

VEN 10-29-2006 03:39

Re: a few quesition!
 
1. block +attack?
2. already answered many times

for exmaple: http://forums.alliedmods.net/showthread.php?t=23469

k007 10-29-2006 13:09

Re: a few quesition!
 
1. how cold i block it.. do i use pre think and find out if he has a grenade and then block it..if i block it when he has a grenade when the client switch weapons will it still block cuz i only want for one grenade
2.ty

stupok 10-29-2006 14:28

Re: a few quesition!
 
Check the client's current weapon, and block +attack if its a grenade.

get_user_weapon() - Returns id of a player's currently carried weapon.

k007 10-29-2006 14:29

Re: a few quesition!
 
thats what a FU***** said i was asking how do i BLOCK it, is there a function i could use or something

stupok 10-29-2006 14:30

Re: a few quesition!
 
Don't wet your pants, please.

Check on client's attack (pre_think) if the current weapon is a grenade, and block it if it is the grenade.

k007 10-29-2006 14:33

Re: a few quesition!
 
ok thanks i know how to check it i just don't know how to block it

SweatyBanana 10-29-2006 15:25

Re: a few quesition!
 
Can you not just remove it from the game?

Rolnaaba 10-30-2006 10:52

Re: a few quesition!
 
he wants them to have the nade but not be able to throw it...


All times are GMT -4. The time now is 04:56.

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