Raised This Month: $ Target: $400
 0% 

Compile localy?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 13:46   Compile localy?
Reply With Quote #1

I need to Compile this localy but i dont know how, Can someone help me?

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

// Customization change the text between { " " } to the model name of the model you want to set
new const model_t[][] = { "leet" } // Terrorist
new const model_ct[][] = { "urban" } // Counter-Terorrist

new g_playermodel[33][33] // current model's short name [player][model]

public plugin_init() {
register_plugin("Team Models","1.0","Illyama")
RegisterHam(Ham_Spawn,"player","fw_PlayerSpaw n",1) // register playerspawn properly

}
public plugin_precache()
{

new i,playermodel[100]

for (i = 0; i < sizeof model_ct; i++)
{
formatex(playermodel,sizeof playermodel - 1,"models/player/%s/%s.mdl",model_ct[i],model_ct[i])
engfunc(EngFunc_PrecacheModel,playermodel)
}
for (i = 0; i < sizeof model_t; i++)
{
formatex(playermodel,sizeof playermodel - 1,"models/player/%s/%s.mdl",model_t[i],model_t[i])
engfunc(EngFunc_PrecacheModel,playermodel)

}

}
public fw_PlayerSpawn(id)
{

if(cs_get_user_team(id) == 2) {

copy(g_playermodel[id],32,model_ct[random_num(0,sizeof model_ct -1)]) // set the ct model
}
else if(cs_get_user_team(id) == 1) {
copy(g_playermodel[id],32,model_t[random_num(0,sizeof model_t -1)]) // set the terrorist model
}

}
SilverFlame is offline
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 07-29-2008 , 13:52   Re: Compile localy?
Reply With Quote #2

__________________
Dr. Jan Itor is offline
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 13:53   Re: Compile localy?
Reply With Quote #3

@ DR.Jan
There is currently no text in this page, you can search for this page title in other pages or edit this page.
Retrieved from "http://wiki.amxmodx.org/Compiling_Plugins_%28AMX_Mod_X"There is currently no text in this page, you can search for this page title in other pages or edit this page.
Retrieved from "http://wiki.amxmodx.org/Compiling_Plugins_%28AMX_Mod_X"
SilverFlame is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-29-2008 , 13:55   Re: Compile localy?
Reply With Quote #4

Quote:
Originally Posted by Dr. Jan Itor View Post
fixed
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 14:07   Re: Compile localy?
Reply With Quote #5

I dont have an compile.exe, I need that right?
SilverFlame is offline
PremunitioN
BANNED
Join Date: Jul 2008
Location: Always use Search before
Old 07-29-2008 , 14:52   Re: Compile localy?
Reply With Quote #6

It should be in your scripting folder, Yes you need that.
PremunitioN is offline
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 15:25   Re: Compile localy?
Reply With Quote #7

Quote:
Originally Posted by PremunitioN View Post
It should be in your scripting folder, Yes you need that.
Its not, Can i download it somewhere?
SilverFlame is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-29-2008 , 15:45   Re: Compile localy?
Reply With Quote #8

Download the Windows Base package from the amxmodx.org downloads page
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 16:17   Re: Compile localy?
Reply With Quote #9

Its not in there, only compile.sh

Nvm found it, Because i took linux

Last edited by SilverFlame; 07-29-2008 at 16:19.
SilverFlame is offline
SilverFlame
Member
Join Date: May 2008
Old 07-29-2008 , 16:27   Re: Compile localy?
Reply With Quote #10

i get there errors

//// Playermodel.sma
// C:\Documents and Settings\Bjarke\Skrivebord\server\addons\amxm odx\scripting\P
layermodel.sma(30) : error 021: symbol already defined: "plugin_init"
// C:\Documents and Settings\Bjarke\Skrivebord\server\addons\amxm odx\scripting\P
layermodel.sma(56) : warning 213: tag mismatch
// C:\Documents and Settings\Bjarke\Skrivebord\server\addons\amxm odx\scripting\P
layermodel.sma(60) : warning 213: tag mismatch
//
// 1 Error.
// Could not locate output file compiled\Playermodel.amx (compile failed).
//
// Compilation Time: 0,28 sec
SilverFlame 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 19:02.


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