• Страница 1 из 1
  • 1
Модератор форума: [east_side]_trane, drifter-dron, valych, admin  
Форум » Pawno » уроки скрипты » [Fs]Simple DeathMatch Control (*icon-0*)
[Fs]Simple DeathMatch Control
adminДата: Четверг, 10.02.2011, 10:42:56 | Сообщение # 1

Группа: Администраторы
Сообщений: 3869
Простой контроль DeathMatch

Это просто фильтрскрипт, что позволяет RCON администратора для включения / выключения DeathMatching для игроков
Когда кто-то игрок DeatMatch, он удаляет все его оружие и штрафы ему 5000 $,
и игрок, который получил DeathMatched, он / она собирается респаун на последнее место, где он / она мертва! и возврате ему 5000 $

Команды
Для RCON Администраторы
/EnableDM
/DisableDM

Code
// DEATHMATCH CONTROL
// THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!!
//

#include <a_samp>
new DM = 1;
new DMed[MAX_PLAYERS];
new Float:DeathPosX[MAX_PLAYERS];
new Float:DeathPosY[MAX_PLAYERS];
new Float:DeathPosZ[MAX_PLAYERS];
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
  print("\n======================================");
  print("        DEATHMATCH CONTROL By Fre$hKidd    ");
  print("========================================\n");
  return 1;
}

public OnFilterScriptExit()
{
  return 1;
}

#else

main()
{
  print("\n----------------------------------");
  print(" DEATHMATCH CONTROL By Fre$hKidd       ");
  print("----------------------------------\n");
}

#endif

public OnPlayerDeath(playerid, killerid, reason)
{
  if (DM == 0)
  {
   SendClientMessage(killerid,0xFF0000FF,"DeatMatch Isn't Allowed! , you have been forced to remove all your weapons!");
   SendClientMessage(killerid,0xFF0000FF,"And you have been fined 5000$ for DeathMatching");
   GivePlayerMoney(killerid,-5000);
   ResetPlayerWeapons(killerid);
   new Float:pX, Float:pY, Float:pZ;
      GetPlayerPos(playerid, pX, pY, pZ);
    DeathPosX[playerid] = pX;
      DeathPosY[playerid] = pY;
      DeathPosZ[playerid] = pZ;
      SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
      SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5);
      SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
   DMed[playerid] = 1;
   return 1;
  }
  return 0;
}

public OnPlayerSpawn(playerid)
{
  if (DMed[playerid] == 1)
  {
      DMed[playerid] = 0;
      SendClientMessage(playerid,0xB1C8FBAA,"You have been Re-Spawned on your last place because you were DeathMatched !");
      SendClientMessage(playerid,0xB1C8FBAA,"Refuned 5000$ !");
      GivePlayerMoney(playerid, 5000);
      SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
      SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5);
      SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
   return 1;
  }
  return 0;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/enabledm", cmdtext, true, 10) == 0)
  {
       if(IsPlayerAdmin(playerid))
   {
   SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been enabled for all!");
   DM = 1;
   return 1;
  }
   return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !");
  }
   
  if (strcmp("/disabledm", cmdtext, true, 10) == 0)
  {
       if(IsPlayerAdmin(playerid))
   {
   SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been disabled for all!");
   DM = 0;
   return 1;
  }
   return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !");
  }
  return 0;
}

// DEATHMATCH CONTROL
// THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!!
//

Источник:sa-mp.com


zm-jail.ru

Разработка сайта samp-pawno.ru


 
СообщениеПростой контроль DeathMatch

Это просто фильтрскрипт, что позволяет RCON администратора для включения / выключения DeathMatching для игроков
Когда кто-то игрок DeatMatch, он удаляет все его оружие и штрафы ему 5000 $,
и игрок, который получил DeathMatched, он / она собирается респаун на последнее место, где он / она мертва! и возврате ему 5000 $

Команды
Для RCON Администраторы
/EnableDM
/DisableDM

Code
// DEATHMATCH CONTROL
// THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!!
//

#include <a_samp>
new DM = 1;
new DMed[MAX_PLAYERS];
new Float:DeathPosX[MAX_PLAYERS];
new Float:DeathPosY[MAX_PLAYERS];
new Float:DeathPosZ[MAX_PLAYERS];
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
  print("\n======================================");
  print("        DEATHMATCH CONTROL By Fre$hKidd    ");
  print("========================================\n");
  return 1;
}

public OnFilterScriptExit()
{
  return 1;
}

#else

main()
{
  print("\n----------------------------------");
  print(" DEATHMATCH CONTROL By Fre$hKidd       ");
  print("----------------------------------\n");
}

#endif

public OnPlayerDeath(playerid, killerid, reason)
{
  if (DM == 0)
  {
   SendClientMessage(killerid,0xFF0000FF,"DeatMatch Isn't Allowed! , you have been forced to remove all your weapons!");
   SendClientMessage(killerid,0xFF0000FF,"And you have been fined 5000$ for DeathMatching");
   GivePlayerMoney(killerid,-5000);
   ResetPlayerWeapons(killerid);
   new Float:pX, Float:pY, Float:pZ;
      GetPlayerPos(playerid, pX, pY, pZ);
    DeathPosX[playerid] = pX;
      DeathPosY[playerid] = pY;
      DeathPosZ[playerid] = pZ;
      SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
      SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5);
      SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
   DMed[playerid] = 1;
   return 1;
  }
  return 0;
}

public OnPlayerSpawn(playerid)
{
  if (DMed[playerid] == 1)
  {
      DMed[playerid] = 0;
      SendClientMessage(playerid,0xB1C8FBAA,"You have been Re-Spawned on your last place because you were DeathMatched !");
      SendClientMessage(playerid,0xB1C8FBAA,"Refuned 5000$ !");
      GivePlayerMoney(playerid, 5000);
      SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
      SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5);
      SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
   return 1;
  }
  return 0;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/enabledm", cmdtext, true, 10) == 0)
  {
       if(IsPlayerAdmin(playerid))
   {
   SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been enabled for all!");
   DM = 1;
   return 1;
  }
   return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !");
  }
   
  if (strcmp("/disabledm", cmdtext, true, 10) == 0)
  {
       if(IsPlayerAdmin(playerid))
   {
   SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been disabled for all!");
   DM = 0;
   return 1;
  }
   return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !");
  }
  return 0;
}

// DEATHMATCH CONTROL
// THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!!
//

Источник:sa-mp.com

Автор - admin
Дата добавления - 10.02.2011 в 10:42:56
Форум » Pawno » уроки скрипты » [Fs]Simple DeathMatch Control (*icon-0*)
  • Страница 1 из 1
  • 1
Поиск:
Загрузка страницы, займет меньше минуты...
Загрузка...

Статистика Форума
Последнии темы Читаемые темы Лучшие пользователи Новые пользователи
Система телефонов поломалась
Не в себе
фильм скалайн
Трансформеры 3
форсаж 6
Ищу [FS]Для админок на сервер
нужны координаты карты для отметки зон...
Помогите найти мод
pawno урок автоматические ворота
обращение к скриптерам.
Вопросы по скриптингу
Ваши ошибки при компиляции GM/FS

Вопросы по скриптингу

(1081)

Считаем до 1000

(274)

Ваши ошибки при компиляция gm

(260)

Набор в команду

(80)

Ваши ошибки при компиляции GM/FS

(71)

вопроосы по скриптингу от 22.04.2013

(64)

Баннеробмен

(64)

несколько команд на samp 0.3 c

(64)

Оценки сайта samp-pawno.ru

(55)

Заказ хостинга

(51)

Набор в команду(форум)

(45)

Урок №61 по созданию системы авто для GodFather

(45)

admin

(3869)

[east_side]_trane

(443)

TWiX

(316)

valych

(501)

drifter-dron

(477)

danik_rok

(317)

Dimka_71rus

(360)

Drifter96

(300)

MaNb9K

(220)

[MTA]MaPeR5518

(181)

Dima_Tkach

(107)

Nik_Ull

(184)

system32xzxz

(Четверг 09:25:24)

torbin169

(Суббота 23:09:29)

kuchuk_00

(Суббота 17:10:14)

artem_boyko_3

(Суббота 15:57:37)

greggelbak

(Среда 18:29:37)

vladisvlavs

(Среда 13:51:57)

add02102002

(Понедельник 22:37:15)

Диман221

(Понедельник 18:12:45)

almas051004

(Воскресенье 11:05:32)

megasuccessms

(Суббота 14:15:36)

nawe

(Пятница 22:25:23)

swoysb

(Пятница 14:55:29)

Вверх
15:39:55
ОбновитьСмайлыУправление мини-чатом
ЧАТ-PAWNO
2010-2024

vkontakte :samp-pawno.ru: