Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Hud rank problem
http://aghl.ru/forum/viewtopic.php?f=12&t=2457
Страница 1 из 2

Автор:  apb-hq [ 17 май 2016, 00:21 ]
Заголовок сообщения:  Hud rank problem

Hi i have an issue with this plugin the rank doesn't change for example i get 50 kills and 3 deaths but the rank remains 0/1240 in the hud when i write /rank i am 3/1240

Here is the sma
 
An image of the hud
Изображение

Автор:  GordonFreeman [ 17 май 2016, 10:36 ]
Заголовок сообщения:  Re: Hud rank problem

Use [code][/code] tags pls D:
Rank in hud is updating on round start. Does its still 0 for 2nd and following rounds ?

Автор:  apb-hq [ 17 май 2016, 20:18 ]
Заголовок сообщения:  Re: Hud rank problem

I've forgotten to notice i'm using it on a DeathMatch server where there is no rounds :D is it possible to update rank everytime you get killed or when you kill someone thanks in advance

Автор:  GordonFreeman [ 17 май 2016, 21:43 ]
Заголовок сообщения:  Re: Hud rank problem

"caching is for weaks"
something like that:
[spoiler]
Код:
public client_putinserver(id){
g_iRank[id] = get_user_stats(id,useless,useless)
}
[/spoiler]

how did u get spoiler works xd

Автор:  Lev [ 18 май 2016, 01:07 ]
Заголовок сообщения:  Re: Hud rank problem

GordonFreeman писал(а):
how did u get spoiler works xd
For some reason you should put = there anyway: [spoiler=]

Автор:  apb-hq [ 18 май 2016, 19:36 ]
Заголовок сообщения:  Re: Hud rank problem

GordonFreeman
Can you be more specific i tried what you've said i got some weird errors

Автор:  GordonFreeman [ 19 май 2016, 07:58 ]
Заголовок сообщения:  Re: Hud rank problem

Код:
public client_putinserver(id)
{
   g_bIsConnected[id] = true
   g_bIsBot[id] = bool:is_user_bot(id)
   if(!g_bIsBot[id])
   {
      g_bShowScore[id] = bool:g_CachepCvar[2]
      g_bIsAdmin[id] = bool:is_user_admin(id)
   }
   get_user_name(id, g_iPlayerName[id], 31)
   
   new useless[8]
   g_iRank[id] = get_user_stats(id,useless,useless)
}

rank in csx is updating on player disconnect or round start.
this code will get player rank on player join

if you want you can use my csxsql and get ranks updated on player deaths or every n-seconds.

Автор:  apb-hq [ 20 май 2016, 02:48 ]
Заголовок сообщения:  Re: Hud rank problem

Nope didn't work rank remains 0/1100 for example :(

Автор:  GordonFreeman [ 20 май 2016, 15:19 ]
Заголовок сообщения:  Re: Hud rank problem

show me how you did

Автор:  apb-hq [ 20 май 2016, 17:51 ]
Заголовок сообщения:  Re: Hud rank problem

I have replaced the client_putin with the code you gave me and nothing happened i suppose it's bcs on my server the is no roundstart event bcs i'm using rounendblock made by silent , so could you help me to remove rank from hud entirely thanks in advance

Страница 1 из 2 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/