AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   team joing event (https://forums.alliedmods.net/showthread.php?t=6940)

kingpin 10-19-2004 22:07

team joing event
 
guys whats the team join event? thanx

Da Bishop 10-19-2004 22:16

umm im not exactly sure... u could try TeamInfo event.

EKS 10-20-2004 05:47

Id start by asking what Mod. And TeamInfo is called quite often i think ( By +showscore ) so its not a good event to check.

Isobold 10-20-2004 05:51

you should be more precise.

For example for cs: http://www.amxmodx.org/funcwiki.php?go=func&id=199

and for dod: http://www.amxmodx.org/funcwiki.php?go=func&id=434

You may combine it with: http://www.amxmodx.org/funcwiki.php?go=func&id=9


Another generall function would be: http://www.amxmodx.org/funcwiki.php?go=func&id=159



The easiest thing to learn about a function is to click on www.amxmodx.org then on ".functions" and then on "list all functions".

Da Bishop 10-20-2004 06:09

Yeah that would work, except i think kingpin is looking for anyone that switches teams or joins a team, really hard to pin point.

jtp10181 10-20-2004 06:48

pretty easy, keep track of what teamid a player is on using a global variable then check to see if it has changed on this event

Code:
/* Whenever player info is changed, this function is called. */ forward client_infochanged(id);

kingpin 10-20-2004 14:12

mm yeah *note to self be more precise.... * sorry bout that. Now this is for cs, and yes I need what bishop said and jtp wrote so Im going to work with that. thanx all.


All times are GMT -4. The time now is 17:18.

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