Raised This Month: $ Target: $400
 0% 

compiler .sp on mac


Post New Thread Reply   
 
Thread Tools Display Modes
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 12-29-2016 , 17:39   Re: compiler .sp on mac
Reply With Quote #11

This should help you.

https://spider.limetech.io/
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-29-2016 , 20:46   Re: compiler .sp on mac
Reply With Quote #12

compile.exe/.sh are wrappers around spcomp(.exe).
Examples:
Windows: compile.exe test.sp
Linux/Mac: ./compile.sh test.sp
__________________
WildCard65 is offline
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-29-2016 , 20:51   Re: compiler .sp on mac
Reply With Quote #13

thanks very much JOMENVEST

/*
* ============================================= ===== ========== ================
*
* [THC RPG] Total HardCore RPG
*
* File: thc_rpg.sp
* Type: Base
* Description: Base file.
*
* Copyright (C) 2009-2011 ArsiRC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ============================================= ===== ========== ================
*/

// Comment out to not require semicolons at the end of each line of code.
#pragma semicolon 1

#include <sourcemod>

#include "thc_rpg/project.inc"
#include "thc_rpg/base/wrappers.inc"

// Project Base includes
#include "thc_rpg/base/versioninfo.inc"
#include "thc_rpg/base/accessmanager.inc"
#include "thc_rpg/base/logmanager.inc"
#include "thc_rpg/base/translationsmanager.inc"
#include "thc_rpg/base/configmanager.inc"
#include "thc_rpg/base/eventmanager.inc"
#include "thc_rpg/base/modulemanager.inc"

// Libraries includes
#include "thc_rpg/libraries/authlib"
#include "thc_rpg/libraries/damagelib"
#include "thc_rpg/libraries/offsetlib"
#include "thc_rpg/libraries/utilities"
#include "thc_rpg/libraries/weaponlib"

// Core includes
#include "thc_rpg/helpers.inc"
#include "thc_rpg/admincmds.inc"
#include "thc_rpg/rpgmenu.inc"
#include "thc_rpg/upgradesystem.inc"
#include "thc_rpg/sql.inc"
#include "thc_rpg/vectors.inc"
#include "thc_rpg/xpsystem.inc"
#include "thc_rpg/effects.inc"
#include "thc_rpg/hooks.inc"

// Module includes
#include "thc_rpg/core.inc"
// health upgrades
#include "thc_rpg/upgrades/health.inc"
#include "thc_rpg/upgrades/medic.inc"
#include "thc_rpg/upgrades/regen_hp.inc"
#include "thc_rpg/upgrades/vampire.inc"
// others
#include "thc_rpg/upgrades/bouncybullets.inc"
#include "thc_rpg/upgrades/damage.inc"
#include "thc_rpg/upgrades/firenade.inc"
#include "thc_rpg/upgrades/frostnade.inc"
#include "thc_rpg/upgrades/firepistol.inc"
#include "thc_rpg/upgrades/frostpistol.inc"
#include "thc_rpg/upgrades/gravity.inc"
#include "thc_rpg/upgrades/icestab.inc"
#include "thc_rpg/upgrades/longjump.inc"
#include "thc_rpg/upgrades/mirrordamage.inc"
#include "thc_rpg/upgrades/poisonsmoke.inc"
#include "thc_rpg/upgrades/positionswap.inc"
#include "thc_rpg/upgrades/regen_ammo.inc"
#include "thc_rpg/upgrades/regen_armor.inc"
#include "thc_rpg/upgrades/regen_grenades.inc"
#include "thc_rpg/upgrades/stealth.inc"
#include "thc_rpg/upgrades/shakebang.inc"
// speed upgrades
#include "thc_rpg/upgrades/speed.inc"
#include "thc_rpg/upgrades/adrenaline.inc"
#include "thc_rpg/upgrades/impulse.inc"
/**
* Record plugin info.
*/
public Plugin:myinfo =
{
name = PROJECT_FULLNAME,
author = PROJECT_AUTHOR,
description = PROJECT_DESCRIPTION,
version = PROJECT_VERSION,
url = PROJECT_URL
};

/**
* Called before plugin is loaded.
*
* @param myself Handle to the plugin.
* @param late Whether or not the plugin was loaded "late" (after map load).
* @param error Error message buffer in case load failed.
* @param err_max Maximum number of characters for error message buffer.
* @return APLRes_Success for load success, APLRes_Failure or APLRes_SilentFailure otherwise.
*/
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
{
// Let plugin load successfully.
return APLRes_Success;
}

/**
* Plugin is loading.
*/
public OnPluginStart()
{
// Forward event to other project base components.

ModuleMgr_OnPluginStart();

#if defined EVENT_MANAGER
EventMgr_OnPluginStart();
#endif

#if defined CONFIG_MANAGER
ConfigMgr_OnPluginStart();
#endif

#if defined TRANSLATIONS_MANAGER
TransMgr_OnPluginStart();
#else
Project_LoadExtraTranslations(); // Call this to load translations if the translations manager isn't included.
#endif

#if defined LOG_MANAGER
LogMgr_OnPluginStart();
#endif

#if defined ACCESS_MANAGER
AccessMgr_OnPluginStart();
#endif

#if defined VERSION_INFO
VersionInfo_OnPluginStart();
#endif

// Forward the OnPluginStart event to all modules.
ForwardOnPluginStart();

// All modules should be registered by this point!

#if defined EVENT_MANAGER
// Forward the OnEventsRegister to all modules.
EventMgr_Forward(g_EvOnEventsRegister, g_CommonEventData1, 0, 0, g_CommonDataType1);

// Forward the OnEventsReady to all modules.
EventMgr_Forward(g_EvOnEventsReady, g_CommonEventData1, 0, 0, g_CommonDataType1);

// Forward the OnAllModulesLoaded to all modules.
EventMgr_Forward(g_EvOnAllModulesLoaded, g_CommonEventData1, 0, 0, g_CommonDataType1);
#endif
}

/**
* Plugin is ending.
*/
public OnPluginEnd()
{
// Unload in reverse order of loading.

#if defined EVENT_MANAGER
// Forward event to all modules.
EventMgr_Forward(g_EvOnPluginEnd, g_CommonEventData1, 0, 0, g_CommonDataType1);
#endif

// Forward event to other project base components.

#if defined VERSION_INFO
VersionInfo_OnPluginEnd();
#endif

#if defined ACCESS_MANAGER
AccessMgr_OnPluginEnd();
#endif

#if defined LOG_MANAGER
LogMgr_OnPluginEnd();
#endif

#if defined TRANSLATIONS_MANAGER
TransMgr_OnPluginEnd();
#endif

#if defined CONFIG_MANAGER
ConfigMgr_OnPluginEnd();
#endif

#if defined EVENT_MANAGER
EventMgr_OnPluginEnd();
#endif

ModuleMgr_OnPluginEnd();
}

et voici le code que je voudrai mettre :

#include <cstrike>

et

public OnClientSettingsChanged(client)
{
if (IsClientInGame(client))
{
decl String:sLevel[12];
IntToString(GetLevel(client), sLevel, sizeof(sLevel));

CS_SetClientClanTag(client, sLevel);
}
}

Include :

http://www.mediafire.com/download/56...7oh/colors.inc
http://www.mediafire.com/download/be.../loghelper.inc

Last edited by Deadpool51; 12-29-2016 at 21:20.
Deadpool51 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode