Raised This Month: $ Target: $400
 0% 

Player Transfer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-13-2018 , 13:20   Re: Player Transfer
Reply With Quote #2

* name/name2 variable size should be MAX_NAME_LENGTH (=32)
* You getting message two times cause your x variable loop starts with 0, and CromChat has support to display message to everyone when player index is zero. Start looping from 1
* set_user_health to zero means player's health will change to zero and hud will be updated, player will move incorrectly but player will be alive, if you want to kill him use dllfunc & DLLFunc_ClientKill
*
Code:
2) Sometimes it transfer one player instead of two players and sometimes both (both is what I need)
(I want them to swap each other, but you will see that in code)
Try debugging use server_print if you haven't hosted server. Print player indexes their teams if you want better understanding write also player names. Check if GetTopKiller is working well.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 08-13-2018 at 13:21.
Ghosted is offline
 



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 12:52.


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