Raised This Month: $51 Target: $400
 12% 

Jail Mod


  
 
 
Thread Tools Display Modes
cloud28
Junior Member
Join Date: Apr 2009
Old 07-26-2009 , 09:08   Re: Jail Mod
#11

Moi j'ai créer mon serveur et j'ai trouver tous mes plugins sur alliedmodders en fouillant mais sa m'as pris du temps ^^.
cloud28 is offline
Yoshiii
Junior Member
Join Date: Jul 2009
Old 07-26-2009 , 09:19   Re: Jail Mod
#12

Daco Dac
Yoshiii is offline
Yoshiii
Junior Member
Join Date: Jul 2009
Old 07-26-2009 , 09:21   Re: Jail Mod
#13

le plugin la ne ve pas marcher

/* Formatright © 2009, ConnorMcLeod

Jail Players Models 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.

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 Jail Players Models; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/

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

#define VERSION "0.1.0"

#define MAX_PLAYERS 32
#define MAX_MODEL_LENGTH 12

new const g_szTerroristsModels
[][] = {
"new_prison"
,
"new_prison2"
,
"new_prison3"
}

new const
g_szCtModel[] =
"ndguards"

new const MODEL[] =
"model"
new g_szCmd[] =
";cl_minmodels 0"

new g_szModel[MAX_PLAYERS+1][MAX_MODEL_LENGTH
]
new
g_iOldTeam[MAX_PLAYERS+1
]

public
plugin_init
()
{
register_plugin("Jail Players Models", VERSION, "ConnorMcLeod"
)

RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1
)
register_forward(FM_SetClientKeyValue, "SetClientKeyValue"
)
register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse"
)
}

public
plugin_precache
()
{
precache_model("models/player/ndguards/ndguards.mdl"
)
precache_model("models/player/ndguards/ndguardsT.mdl"
)

precache_model("models/player/new_prison/new_prison.mdl"
)
precache_model("models/player/new_prison2/new_prison2.mdl"
)
precache_model("models/player/new_prison3/new_prison3.mdl"
)
}

public
client_connect(id
)
{
client_cmd(id, g_szCmd
)
}

public
client_putinserver( id
)
{
g_iOldTeam[id] =
0

if( !is_user_bot(id
) )
{
set_task(0.1, "Init_Checks", id
)
}
}

public
Init_Checks(id
)
{
if(
is_user_connected(id
) )
{
query_client_cvar(id, "cl_minmodels", "Cvar_Result"
)
}
}

public
Cvar_Result(id, const szCvar[], const szValue
[])
{
if(
is_user_connected(id
) )
{
if(
szValue[0] != '0' || szValue[1] != 0
)
{
client_cmd(id, g_szCmd
)
}
query_client_cvar(id, "cl_minmodels", "Cvar_Result"
)
}
}

public
Player_Spawn_Post(id
)
{
if(
is_user_alive(id
) )
{
new
iTeam = _:cs_get_user_team(id
)
if(
iTeam != g_iOldTeam[id
] )
{
g_iOldTeam[id] =
iTeam
switch( iTeam
)
{
case
1
:
{
formatex(g_szModel[id], MAX_MODEL_LENGTH-1, g_szTerroristsModels[ random(sizeof(g_szTerroristsModels
)) ])
}
case
2
:
{
formatex(g_szModel[id], MAX_MODEL_LENGTH-1, g_szCtModel
)
}
}
set_user_info(id, MODEL, g_szModel[id
])
}
}
}

public
SetClientKeyValue(id, const szInfoBuffer[], const szKey
[])
{
if(
equal(szKey, MODEL
) )
{
return
FMRES_SUPERCEDE
}
return
FMRES_IGNORED
}

public
Message_ClCorpse
()
{
set_msg_arg_string(1, g_szModel[ get_msg_arg_int(12
) ])
}
Yoshiii is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-26-2009 , 09:22   Re: Jail Mod
#14

Pour les models, utiliser ce plugin : http://forums.alliedmods.net/showthread.php?p=958925
Et pas celui que j'ai donné au début.

La config à mettre pour le jail est là : http://forums.alliedmods.net/showthr...220#post960220
Avec le lien pour DL les models.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-03-2009 at 07:17.
ConnorMcLeod is offline
Yoshiii
Junior Member
Join Date: Jul 2009
Old 07-26-2009 , 09:31   Re: Jail Mod
#15

ok
Yoshiii is offline
Yoshiii
Junior Member
Join Date: Jul 2009
Old 07-26-2009 , 09:54   Re: Jail Mod
#16

je narive pas a trouver le plugin pour que lon voye les arme dans le dot
Yoshiii is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-26-2009 , 11:45   Re: Jail Mod
#17

Pitié, Yoshiii, UTILISE le bouton EDIT, au lieu de flooder ton propre sujet. MERCI.
__________________
Arkshine is offline
cloud28
Junior Member
Join Date: Apr 2009
Old 07-26-2009 , 11:51   Re: Jail Mod
#18

Lol tiens le nom: Backweapons
cloud28 is offline
sooN
Veteran Member
Join Date: Apr 2009
Old 07-28-2009 , 11:54   Re: Jail Mod
#19

BaqueHouaypaune, le nom du plugin qui met les armes dans le dos, sinon merci beaucoup Connor ( ironie )
__________________
sooN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-04-2009 , 14:22   Re: Jail Mod
#20

Quote:
Originally Posted by sooN View Post
sinon merci beaucoup Connor ( ironie )
Te plains pas, tu viens de récup un plugin de models qui fais pas crasher ton serv.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 11:44.


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