Raised This Month: $ Target: $400
 0% 

Editing Maxim's admin_listen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GanJa
Member
Join Date: Mar 2004
Location: Salem, OR
Old 04-23-2004 , 16:08  
Reply With Quote #1

slight prob with this, most mods no longer use numbers for teams, in fact about the only mod I know of that is main stream is TFC.
Now you would have to do this mod based of course but use this code:
Code:
      new team[32]       get_user_team(id,team,31)       //TFC support =)       new theteam=get_user_team(id)       if(equali(team,"spectator") || equali(team,"spectatorteam") || (theteam==6)){             //your stuff here       }
I did equali so that you can cut some code out and possibly support more mods since some mods may use the same team name =)
Here is a list of some of the teams for some mods:
  • //ns
    undefinedteam
    spectatorteam
    alien1team
    marine1team

    //cs
    SPECTATOR
    UNASSIGNED
    CT
    TERRORIST

    //dod
    spectator
    axis
    allies
Note: I could be totally off on this since I'm just now moving into amxmodx. This is all based off of amx.
GanJa 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 16:01.


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