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

[SLOVED] First spawn and player_spawn problem !
http://aghl.ru/forum/viewtopic.php?f=12&t=1995
Страница 1 из 1

Автор:  Kuma77 [ 02 дек 2014, 23:39 ]
Заголовок сообщения:  [SLOVED] First spawn and player_spawn problem !

Privet
SLOVED THX
I have 2 problems on spawn i hop you help me .*

1
when player join server at first spawn ( if he is red ) he spawn on blue and (if he blue ) he spawn on red but when player die problem disappear .

2
i have respawn timer and i put it on 2 seconds for spawning , so when spawn time active player can spawn if he touch attack (mouse1 or space ) befor spawn time finished .

and this is the resault : player spawn 2 times when he hit mouse and when spawn finished and this make skin player on the place where he spawn on it

Изображение

Автор:  Lev [ 03 дек 2014, 00:08 ]
Заголовок сообщения:  Re: First spawn and player_spawn problem !

Code is almost unreadable.
Use hl.inc, it has hl_set_user_team and hl_set_user_model functions.

Автор:  Kuma77 [ 03 дек 2014, 00:24 ]
Заголовок сообщения:  Re: First spawn and player_spawn problem !

Lev писал(а):
Code is almost unreadable.
Use hl.inc, it has hl_set_user_team and hl_set_user_model functions.

Thank you for fast replay .

its work if i do this ?

Код:
public client_putinserver(id)
{
      new tid = hl_get_user_team(id)

   switch (tid)
   {
         case 1:
         {
            // something Like TEAM_RED
          }
         case 2:
         {
            // something Like TEAM_BLUE
          }
}

aaa ? :)

Posted after 22 minutes 29 seconds:
Lev писал(а):
Code is almost unreadable.
Use hl.inc, it has hl_set_user_team and hl_set_user_model functions.

hmm idk , But why i dont have any problems on didecated server local but i have this problems on linux server

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