Raised This Month: $32 Target: $400
 8% 

[HELP] Update Dot On Radar?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 05-22-2018 , 14:56   [HELP] Update Dot On Radar?
Reply With Quote #1

I would like to display the position of one lone "gladiator" on the radar for CT's.
But for some reason the dot spawns in a random location..

Anyone know why?
Thanks.

Code:
public plugin_init() {     set_task(1.0,"refreshRadar", .flags="b");     gmsgHostagePos = get_user_msgid("HostagePos") } public refreshRadar() {     new players[32];     new playercount;     get_players(players, playercount);     new i     for (i=0; i<playercount; i++)     {         new gladiatorCoords[3]         if (cs_get_user_team(players[i]) == CS_TEAM_T)         {             get_user_origin(players[i], gladiatorCoords)         }         else if (cs_get_user_team(players[i]) == CS_TEAM_CT)         {             message_begin(MSG_ONE, gmsgHostagePos, {0,0,0}, players[i])             write_byte(1)             write_byte(1)             write_coord(gladiatorCoords[0])             write_coord(gladiatorCoords[1])             write_coord(gladiatorCoords[2])             message_end()         }     } }
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux 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 16:22.


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