Raised This Month: $ Target: $400
 0% 

Solved Get team of disconnected player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 06-08-2018 , 11:53   Re: Get team of disconnected player
Reply With Quote #1

Quote:
Originally Posted by CrazY. View Post
Code:
#include <amxmodx> #include <cstrike> #include <fakemeta> public plugin_init() {     register_plugin("Get team on disconnect", "1.0", "Unknown");     register_forward(FM_ClientDisconnect, "fw_ClientDisconnect_Pre"); } public fw_ClientDisconnect_Pre(pPlayer) {     new CsTeams:iTeam = cs_get_user_team(pPlayer);     client_print(0, print_chat, "Team: %s", iTeam == CS_TEAM_T ? "TERRORIST" : "CT"); }

Or just use client_disconnected forward in AMx Mod X 1.8.3.
With the disconnected forward I'm getting invalid player..Will test with fakemeta thanks
iceeedr is offline
Send a message via Skype™ to iceeedr
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 04:39.


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