Raised This Month: $ Target: $400
 0% 

Prevent spawn after roundstart


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 01-26-2009 , 10:30   Re: Prevent spawn after roundstart
Reply With Quote #1

my mod transfer all players to terrorists on roundstart, so if anyone go to ct the event start.
__________________

padilha007 is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-26-2009 , 11:49   Re: Prevent spawn after roundstart
Reply With Quote #2

Quote:
Originally Posted by padilha007 View Post
my mod transfer all players to terrorists on roundstart, so if anyone go to ct the event start.
Is that what you need?

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> #define OFFSET_TEAM    114 new g_Msg_TeamInfo; public plugin_init() {     RegisterHam(Ham_Spawn, "player", "Forward_Spawn");         g_Msg_TeamInfo = get_user_msgid("TeamInfo"); } public Forward_Spawn(id) {     if(get_user_team(id) != 1)     {         fm_set_user_team(id, 1);     } } fm_set_user_team(index, team) {     set_pdata_int(index, OFFSET_TEAM, team);     dllfunc(DLLFunc_ClientUserInfoChanged, index, engfunc(EngFunc_GetInfoKeyBuffer, index));         message_begin(MSG_ALL, g_Msg_TeamInfo);     write_byte(index);     static Teams[][] =     {         "", // LOL NULL         "TERRORIST",         "CT",         "SPECTATOR"     }     write_string(Teams[team]);     message_end(); }
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores 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 01:45.


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