Raised This Month: $ Target: $400
 0% 

Team changing with out killing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-26-2007 , 09:01   Re: Team changing with out killing
Reply With Quote #1

There is a plugin up here, by jghg with team transfer without killing, and respawn.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-26-2007 , 09:23   Re: Team changing with out killing
Reply With Quote #2

from amx2006.3 plmenu.sma, fm converted :

Code:
stock setUserTeam_cs(index,team,respawn=0,updatescoreboard=1) {   if(is_user_connected(index)) {     if(team >= 0 && team <= 3) {       set_pdata_int(index, 114, team)       if(is_user_alive(index)) {         engclient_cmd(index, "drop", "weapon_c4")         if(team != 2) {           new defuser = get_pdata_int(index, 193)           if(defuser & (1<<16)) {             defuser -= (1<<16)             set_pdata_int(index, 193, defuser)           }           message_begin(MSG_ONE, get_user_msgid("StatusIcon"), {0,0,0}, index)           write_byte(0)           write_string("defuser")           write_byte(0)           write_byte(255)           write_byte(0)           message_end()         }       }       if(respawn) {         new health = get_user_health(index)         new armor = get_user_armor(index)         set_pev(index, pev_spawnflags, 3)         dllfunc(DLLFunc_Spawn, index)         set_pev(index, pev_iuser1, 0)         set_pev(index, pev_health, float(health))         set_pev(index, pev_armorvalue, float(armor))       }       if(updatescoreboard) {         message_begin(MSG_ALL, get_user_msgid("TeamInfo"))         write_byte(index)         switch(team) {           case 1: write_string("TERRORIST")           case 2: write_string("CT")         }         message_end()       }       return 1     }   }   return 0 }
ConnorMcLeod 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:19.


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