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

Half Life Capture the Flag
http://aghl.ru/forum/viewtopic.php?f=20&t=1981
Страница 1 из 4

Автор:  Kuma77 [ 24 ноя 2014, 21:47 ]
Заголовок сообщения:  Half Life Capture the Flag

I dont know if this is the right place , but i need your help !

I am done Finish HL CTF plugin , But i still have one problem i think its easy to slove with you guys .

Is someone can help me ? :Rose:

Автор:  KORD_12.7 [ 24 ноя 2014, 21:59 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

What a problem? And where is a source code?

Автор:  Kuma77 [ 25 ноя 2014, 00:42 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

The problem is about teams , evrything is right but not on scorebar ,eg : if i am red and if i get blue flag i switch to blue team on scorebar only but my model still red , but when i change this


Код:
   switch(hl_get_user_team(id))
   {
      case 2: g_iTeam[id] = TEAM_RED
      case 1: g_iTeam[id] = TEAM_BLUE
      default: return
   }


To this

Код:

   switch(hl_get_user_team(id))
   {
      case 1: g_iTeam[id] = TEAM_RED
      case 2: g_iTeam[id] = TEAM_BLUE
      default: return
   }


problem is gon but new problem show up is red can take red flag and blue can take blue flag !! . this is my problem . nothing else . :Yahoo!:

Posted after 50 minutes 20 seconds:
on flag_take i have this


Код:
flag_take(iFlagTeam, id)
{

   if(g_bProtected[id])
      player_removeProtection(id, "PROTECTION_TOUCHFLAG")

   new  ent = g_iFlagEntity[iFlagTeam]

   entity_set_edict(ent, EV_ENT_aiment, id)
   entity_set_int(ent, EV_INT_movetype, MOVETYPE_FOLLOW)
   entity_set_int(ent, EV_INT_solid, SOLID_NOT)

   g_iFlagHolder[iFlagTeam] = id

}

Posted after 1 hour 56 minutes 25 seconds:
this m8 help you !


Код:

public msg_teamScore()
{
   new szTeam[2]

   get_msg_arg_string(1, szTeam, 1)

   switch(szTeam[0])
   {
      case 1: set_msg_arg_int(2, ARG_SHORT, g_iScore[TEAM_RED])
      case 2: set_msg_arg_int(2, ARG_SHORT, g_iScore[TEAM_BLUE])
   }
}

Автор:  smurfavr [ 25 ноя 2014, 04:06 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Kuma77 If you want KORD_12.7 help you present the entire code.

Автор:  Lev [ 25 ноя 2014, 10:00 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Kuma77
Hi. Do you plan to release plugin with source code?

Автор:  Kuma77 [ 25 ноя 2014, 18:08 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Problem Sloved !

Автор:  SKPeter [ 26 ноя 2014, 03:31 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

JCTF author indeed made the plugin to be supported on all mods, but since people never tested his plugin back then he started adding some CS-only features... so maybe it should work with the right adjustments.

Автор:  Kuma77 [ 27 ноя 2014, 03:37 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Lev писал(а):
Kuma77
Hi. Do you plan to release plugin with source code?

Lev , I will release it when i finish it , i have an idea for how mod will be so i will try to make it as the same as in my mind . :)

Автор:  Lev [ 27 ноя 2014, 12:43 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Kuma77
You can just start the thread for the plugin, post it and then update it when you finish - this is how we do it.

Автор:  Kuma77 [ 27 ноя 2014, 17:17 ]
Заголовок сообщения:  Re: Half Life Capture the Flag

Lev
This is the plugin :) Team Score Fixed .

Its not ready yet , so i will make thread when it will be ready .

i think you remamber me Lev ? i was ask you about hl_kreedz long time ago :D .

Вложения:
Скачать плагин или Скачать исходник [updated.sma - 53.63 КБ]
Скачиваний: 56

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