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

drop Ent befor weapon ?
http://aghl.ru/forum/viewtopic.php?f=12&t=2429
Страница 1 из 1

Автор:  abdobiskra [ 11 апр 2016, 10:46 ]
Заголовок сообщения:  drop Ent befor weapon ?

Hi, i want make function when player have Ent (sword) and weapon
using this cmd :
Код:
register_clcmd("drop", "player_dropEnt")
i want here set the Ent droped befor weapon ? (Ent in first slot)

now its work for droped all ( sword+ weapon)

Автор:  Kuma77 [ 11 апр 2016, 18:06 ]
Заголовок сообщения:  Re: drop Ent befor weapon ?

You want drop entity eg: ( sword ) then wait for second and drop your weapon or drop sword then dont drop weapon ?

explane more !!

Автор:  abdobiskra [ 11 апр 2016, 18:34 ]
Заголовок сообщения:  Re: drop Ent befor weapon ?

Kuma77 писал(а):
drop sword then dont drop weapon ?

explane more !!


drop sword and next drop weapons ))

Автор:  Lev [ 11 апр 2016, 19:08 ]
Заголовок сообщения:  Re: drop Ent befor weapon ?

Not sure what you really want, but you can block drop command with returning PLUGIN_HANDLED when you did you own drop code.

Автор:  abdobiskra [ 11 апр 2016, 19:26 ]
Заголовок сообщения:  Re: drop Ent befor weapon ?

Lev

i know that but i do not want block function drop
i want change function drop and make the Ent slot nember 1 and nextThink its weapons

Ex :
if player got the Ent (sword) and weapons when used cmd drop ==> Ent + Weapon Droped !
but i want only Ent in first drop and weapon in next drop

Автор:  abdobiskra [ 13 апр 2016, 19:54 ]
Заголовок сообщения:  Re: drop Ent befor weapon ?

sloved ))

Код:
public drop_ent(id){

  if(g_has_ent[id]){
  //if user has entity then you drop it with your code or function
//add here your code that drops entity


  return PLUGIN_HANDLED;
  //After your dropped entity , you block weapon drop by returning handled
 }

return PLUGIN_CONTINUE;
//If player doesn't have entity, weapon drop won't be blocked
}

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