Raised This Month: $ Target: $400
 0% 

-attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyeball
Junior Member
Join Date: Jan 2005
Location: Latvia
Old 01-22-2005 , 10:08   -attack
Reply With Quote #1

how can i make everyone stop shooting? i know that i have tu use client_cmd(id,"-attack"). But where should i use it? in a CurWeapon event or is there another way?
__________________
I was here
eyeball is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 01-22-2005 , 10:13  
Reply With Quote #2

use it where ever you want it to happen......
just loop though the player id and check if they are connected
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
eyeball
Junior Member
Join Date: Jan 2005
Location: Latvia
Old 01-22-2005 , 11:48  
Reply With Quote #3

i did it like this, but they still can attack

public wpn_loop()
{
for (new id = 1; id <= SH_MAXSLOTS; id ++) {
if ( ghasPOPPowers[id] && is_user_alive(id) && shModActive() ) {
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
if (wpnid != CSW_KNIFE && wpnid > 0) {
engclient_cmd(id,"weapon_knife")
}

}
else if (SlowDown && !UsingPrince[id] && is_user_connected(id)) {
client_cmd(id,"-attack")
}
}
}

but the knife only mode works
__________________
I was here
eyeball is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 01-22-2005 , 14:16  
Reply With Quote #4

thats because making them send -attack doesn;t really do anything....
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
eyeball
Junior Member
Join Date: Jan 2005
Location: Latvia
Old 01-22-2005 , 16:14  
Reply With Quote #5

oh...

so what is the use of it? Is there another way to make them stop shooting?
__________________
I was here
eyeball is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-22-2005 , 16:20  
Reply With Quote #6

u can change hitzones so even if they shoot something they wont deal damage
Freecode is offline
eyeball
Junior Member
Join Date: Jan 2005
Location: Latvia
Old 01-22-2005 , 16:23  
Reply With Quote #7

a good idea, but i am making a time freeze ability and i need them to stand still and do nothing like they were paused. I have changed the speed to 0. Now they stand in place and shoot.
__________________
I was here
eyeball is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-22-2005 , 16:34  
Reply With Quote #8

ok use the hitzone hack and change their gun shooting sequence to idle
Freecode is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 01-22-2005 , 16:36  
Reply With Quote #9

probably have to do something in client_prethink, yay
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
eyeball
Junior Member
Join Date: Jan 2005
Location: Latvia
Old 01-26-2005 , 14:36  
Reply With Quote #10

i tried to change the sequence to idle using Entvars_Set_Int(id, EV_INT_sequence, 1), but it doesnt realy do the stuff i expected. It changes there sequence, but they change it back.
jtp said something about client_prethink. how does it realy work? Does it return "true" before player movement or what?

hmm... is there a command that removes ammo?
__________________
I was here
eyeball 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 07:21.


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