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

Help / Support [HELP] Quake Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 04-20-2012 , 11:33   [HELP] Quake Sounds
Reply With Quote #1

I'm using Quake Sounds plugin together with ZP 5.0.8 . What i need to change in code to enable sounds for humans only , and disable it for zombies ?
gogicaa is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 11:40   Re: [HELP] Quake Sounds
Reply With Quote #2

Check if user is zombie or human and then when sound is played set check.
__________________
H.RED.ZONE is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 04-20-2012 , 11:50   Re: [HELP] Quake Sounds
Reply With Quote #3

I tried to use !zp_get_user_zombie but it won't work
gogicaa is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 11:53   Re: [HELP] Quake Sounds
Reply With Quote #4

#include <zombieplague>

if ( !zp_get_user_zombie ( id ) ) {
blabla
}


EDIT:
And add survivor
if ( !zp_get_user_zombie ( id ) || zp_get_user_survivor ( id ) ) {
blabla
}
__________________

Last edited by H.RED.ZONE; 04-20-2012 at 11:54.
H.RED.ZONE is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 04-20-2012 , 11:55   Re: [HELP] Quake Sounds
Reply With Quote #5

I tried that - but then it won't work for any team.
EDIT : Solved !

Last edited by gogicaa; 04-20-2012 at 13:17.
gogicaa is offline
Old 04-20-2012, 13:16
gogicaa
This message has been deleted by gogicaa. Reason: Doublepost
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 00:56.


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