AlliedModders

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

Burnzy 07-10-2004 13:08

get_user_team
 
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 07-10-2004 13:30

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") }

SidLuke 07-10-2004 19:49

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). :P

Burnzy 07-10-2004 19:51

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?

jtp10181 07-10-2004 20:10

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).


Burnzy 07-10-2004 20:18

hmm... maybe ill try that

ngsucks 07-10-2004 21:33

why not jst make the hosties invincible?

thats the easiest solution to all of these plugins!

Burnzy 07-10-2004 21:34

wtf... u dont no what im making...

ngsucks 07-10-2004 21:36

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!

SidLuke 07-11-2004 07:51

Look at this plugin : http://djeyl.net/forum/index.php?showtopic=17560


All times are GMT -4. The time now is 14:49.

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