Заказать игровой сервер Контакты (заказать плагин/исправить ошибки/другое) Поиск

[ вход ]
[ последние сообщения ]

  • Страница 2 из 2
  • «
  • 1
  • 2
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » code & include
code & include
Nahal Дата: Четверг, 07.05.2015, 16:17:12 | Сообщение # 16
Сообщений: 205
Репутация: 8 [ +/- ]
Scarface_slv, да, именно про это имею ввиду!
 
_R1KO_ Дата: Четверг, 07.05.2015, 16:56:37 | Сообщение # 17
Сообщений: 200
Репутация: 30 [ +/- ]
тогда так:

my_functions.inc
Код

stock MyFunc1(param1, param2)
{
// код ф-и
}

stock MyFunc2(param1, param2)
{
// код ф-и
}


plugin.sp

Код

#pragma semicolon 1
#include <sourcemod>
#include <my_functions>

// юзаешь свои ф-и
 
Nahal Дата: Четверг, 07.05.2015, 17:10:41 | Сообщение # 18
Сообщений: 205
Репутация: 8 [ +/- ]
_R1KO_, Допустим это
Код
// Xp
native thc_rpg_SetXP(client, amount);
native thc_rpg_SetReqXP(client, amount);
native thc_rpg_SetStaticReqXP(client, amount);
native thc_rpg_SetStaticXP(client, amount);
native thc_rpg_GetXP(client);
native thc_rpg_TeamWinXP(team);
native thc_rpg_GetReqXP(client);
native thc_rpg_GetHurtXP(client);
native thc_rpg_SetHurtXP(client, amount);
// Level
native thc_rpg_SetLevel(client, amount);
native thc_rpg_SetStaticLevel(client, amount);
native thc_rpg_GetLevel(client);
// Credits
native thc_rpg_SetCredits(client, amount);
native thc_rpg_SetStaticCredits(client, amount);
native thc_rpg_GetCredits(client);
// Vip
native thc_rpg_GetVip(client);
// Databases
native thc_rpg_RemovePlayer(client);
native thc_rpg_GetPlayerTop10(client);
native thc_rpg_SavePlayerData(client);
native thc_rpg_LoadPlayerData(client);
native thc_rpg_InsertPlayer(client);
native thc_rpg_ResetPlayer(client);
// Forwards
forward ThcRpg_LvlUp(client); //(Player lvl up)
 
_R1KO_ Дата: Четверг, 07.05.2015, 17:26:23 | Сообщение # 19
Сообщений: 200
Репутация: 30 [ +/- ]
Это уже нативы. Тебе нужно знать описание ф-й, что они делают и алгоритм работы основного плагина.
 
Nahal Дата: Пятница, 08.05.2015, 11:59:17 | Сообщение # 20
Сообщений: 205
Репутация: 8 [ +/- ]
_R1KO_, а нативы ненадо прописывать?
 
_R1KO_ Дата: Пятница, 08.05.2015, 17:48:38 | Сообщение # 21
Сообщений: 200
Репутация: 30 [ +/- ]
Цитата Nahal ()
а нативы ненадо прописывать?

Тоесть?
 
Nahal Дата: Пятница, 08.05.2015, 19:02:32 | Сообщение # 22
Сообщений: 205
Репутация: 8 [ +/- ]
_R1KO_, Те нативы которые скинул, с ними надо что-то делать в sp
 
_R1KO_ Дата: Суббота, 09.05.2015, 13:35:34 | Сообщение # 23
Сообщений: 200
Репутация: 30 [ +/- ]
надо
 
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » code & include
  • Страница 2 из 2
  • «
  • 1
  • 2
Поиск: