AlliedModders

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

|2eM!x 03-23-2005 20:34

Team help
 
Well, pretty much, i just want it that if a person selects to be a t that it client_print Welcome to terrorists, or Welcome to CT's, maybe i could add some weapon restriction msgs on later :D

v3x 03-23-2005 20:48

Heh, xeroblood should be able to answer this one.. Since made/put a plugin on my server that when a user joins a team he is forced to say "Hello All!". :o

xeroblood 03-23-2005 22:21

lol.. ya, I made that.. it is part of UAIO...

example:
Code:
#include <amxmodx> new bool:g_bIsJoining[33] = false public plugin_init() {     register_event( "CurWeapon", "Event_ChgWeapon", "be", "1=1" ) } public client_putinserver( id ) {     g_bIsJoining[id] = true } public Event_ChgWeapon( id ) {     if( g_bIsJoining[id] )     {         g_bIsJoining[id] = false         if( get_user_team( id ) == 1 )             client_print( id, print_chat, "Welcome to the Terrorist Team!" )         else             client_print( id, print_chat, "Welcome to the Counter-Terrorist Team!" )     }     return PLUGIN_CONTINUE }

Or something like that!!

:D

|2eM!x 03-24-2005 00:00

// please! you dont know how much you rock :D


All times are GMT -4. The time now is 09:50.

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