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

[Help] Reset function's
http://aghl.ru/forum/viewtopic.php?f=20&t=2684
Страница 1 из 1

Автор:  yemet123 [ 30 май 2017, 15:08 ]
Заголовок сообщения:  [Help] Reset function's

Hi, I making try reset function's on DispatchSpawn. I need respawn function's with cmd but I can't understanding, working but
single respawning "player". How I can fix?

Вложения:
Скачать плагин или Скачать исходник [dispatchspawnall.sma - 400 байт]
Скачиваний: 238

Автор:  Lev [ 30 май 2017, 16:52 ]
Заголовок сообщения:  Re: [Help] Reset function's

Hi.
Looks like a total mess.
Код:
public plugin_init()
{
   register_clcmd("resetall", "reset") // Ok, you register client command. Client can issue it via console.
}

public reset(entity) // So, client issued the command, this is called. What do you expect to be in the entity param? Client ID?
{
   new className[33]
   pev(entity, pev_classname, className, 32) // Getting class name of the client?

   if(!equal(className,"func_",7)) // Do you expect that client classname could start with "func_"?
   {
      DispatchSpawn(entity) // Spawn client who typed in the command?
   }
}
Also, I didn't got what you wish to achieve.

Автор:  yemet123 [ 31 май 2017, 09:23 ]
Заголовок сообщения:  Re: [Help] Reset function's

mmm. Single I need respawn functions, I using all way but single respawning "player"...

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