Raised This Month: $ Target: $400
 0% 

get_user_team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 13:08   get_user_team
Reply With Quote #1

how do u make it so when a hostage is killed by person, u get there team name?

all i no is get_user_team
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 13:30  
Reply With Quote #2

Code:
/**************************************************** * This is a Hostage Safty Plugin * This Plugin was created for AMXX v0.16 * Created By Burnzy * * Admin Commands: *  amx_hostagesafty <1|0> * * This plugin was made on request * If all the hostages are killed, the cts are declared winners. * * Bugs: *  Ct's can kill the hostages, and they will still win... Not good to use yet * *****************************************************/ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <engine> public hostagesafty(id,level,cid){     if (!cmd_access(id,level,cid,2))     {         return PLUGIN_CONTINUE     }     return PLUGIN_HANDLED } public plugin_init() {     register_plugin("Hostage Safty","v1.0","Burnzy")     register_concmd("amx_hostagesafty", "hostagesafty", ADMIN_LEVEL_C, "Ct's Win if Hostages Die") }
__________________
Burnzy is offline
Send a message via AIM to Burnzy
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 07-10-2004 , 19:49  
Reply With Quote #3

I think you must track text messages for text "You've killed a hostage" or something. Then you can check id of a person who gets this message. Then use get_user_team(hisId).
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 19:51  
Reply With Quote #4

i was hoping i could make it so when all the hostages are killed, CT's win. But i wanta make it so that every hostage has to be killed by a T. Is it possible?
__________________
Burnzy is offline
Send a message via AIM to Burnzy
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-10-2004 , 20:10  
Reply With Quote #5

Quote:
Originally Posted by Burnzy
i was hoping i could make it so when all the hostages are killed, CT's win. But i wanta make it so that every hostage has to be killed by a T. Is it possible?
yes

Quote:
Originally Posted by SidLuke
I think you must track text messages for text "You've killed a hostage" or something. Then you can check id of a person who gets this message. Then use get_user_team(hisId).
__________________
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
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 20:18  
Reply With Quote #6

hmm... maybe ill try that
__________________
Burnzy is offline
Send a message via AIM to Burnzy
ngsucks
Member
Join Date: Jul 2004
Old 07-10-2004 , 21:33  
Reply With Quote #7

why not jst make the hosties invincible?

thats the easiest solution to all of these plugins!
__________________
Superhero's @ -{D.o}-
Custom Heroes
ip link: 209.123.8.21:27010

WWW.Frag-Wire.COM!
$30 dollars for a 16 player server!
ngsucks is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 21:34  
Reply With Quote #8

wtf... u dont no what im making...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
ngsucks
Member
Join Date: Jul 2004
Old 07-10-2004 , 21:36  
Reply With Quote #9

oh, know i understand you want to make it like how it would be in real life... if the t's kill the hosties, hen why would the ct's go and rescue them, or even keep fighting!


very cool!
__________________
Superhero's @ -{D.o}-
Custom Heroes
ip link: 209.123.8.21:27010

WWW.Frag-Wire.COM!
$30 dollars for a 16 player server!
ngsucks is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 07-11-2004 , 07:51  
Reply With Quote #10

Look at this plugin : http://djeyl.net/forum/index.php?showtopic=17560
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
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 14:50.


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