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

recherche anti roxx tou simple


  
 
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-19-2007 , 09:35   Re: recherche anti roxx tou simple
#11

Mise à jour du plugin, ne pas utiliser l'ancien ;)
ConnorMcLeod is offline
batoche1
Junior Member
Join Date: Oct 2007
Old 10-20-2007 , 14:17   Re: recherche anti roxx tou simple
#12

encore merci connor c est exactement c que je voulais
batoche1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-11-2008 , 17:09   Re: recherche anti roxx tou simple
#13

Mise à jour test pour patjac (le fichier .txt reste le même, quelques posts plus haut):
Attached Files
File Type: sma Get Plugin or Get Source (mtl.sma - 855 views - 8.5 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-23-2009 at 01:00.
ConnorMcLeod is offline
Gibsonz
Junior Member
Join Date: Jul 2008
Location: Lyon (69003 - France)
Old 07-11-2008 , 23:48   Questions sur le plugin mtl.
#14

Quote:
Originally Posted by connorr View Post
Mise à jour test pour patjac (le fichier .txt reste le même, quelques posts plus haut):

Bonjour Connor !


Tout d'abord, merci pour ton travail sur le plugin " mtl " !

J'utilise le plugin " mtl " de base et je cherchais une possibilité
de modifier les réglages de ce plugin.

Au passage, je souhaite conseiller le mtl à tous les admin
qui souhaite aider les joueurs les plus faibles.


Pour ton plugin, quelle version dois-je prendre ?

Celle que tu as publié sur ce forum hier (en version test),
où bien celle que tu as publié fin 2007 ?

Au sujet du fichier texte :

c'est ce que les joueurs voient quand ils tapent : /mtl
dans la commande say, ou pas ?


Sinon, est-il possible pour toi d'ajouter une restriction : " Cut " ?


J'utilise : amx 2006.

Ton plugin est-t'il compatible avec cette version d'amx ?


Merci d'avance pour tes réponses et à très bientôt !
Gibsonz is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-12-2008 , 02:57   Re: recherche anti roxx tou simple
#15

Tu es sur un forum Amxx, Gibson.

Amx n'est plus supporté depuis longtemps. Il est conseillé de migrer sur Amxx où alors ne t'attend plus à avoir un quelconque support.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-12-2008 , 03:24   Re: recherche anti roxx tou simple
#16

De plus, cette version a été complètement modifiée, voire complètement ré-écrite, et n'est absolument pas compatible avec amx.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dvdmag
New Member
Join Date: Jul 2007
Old 08-20-2008 , 06:47   Re: recherche anti roxx tou simple
#17

Bonjour
Connorr, serait-il possible de modifier en une version qui permettrait de limiter l'utilisation des AK47 et M4 si ecart +15 puis seulement Guns si écart +20.
Merci
dvdmag is offline
Levia
Junior Member
Join Date: Jan 2009
Old 01-30-2009 , 08:52   Re: recherche anti roxx tou simple
#18

Salut ConnorMcLeod saurais tu me transformé ton script pour que la premiere restriction apres 10 frags d ecart donne droit qu'aux mitraillettes (Mp5,Tmp,Ump,P90,Mac-10) et deuxieme restriction apres 20 frags d ecart donne droit qu'aux pistolet (usp,glock,deagle)

Merci d avance
Levia is offline
freeworldgreg
Member
Join Date: Jan 2009
Old 02-02-2009 , 15:55   Re: recherche anti roxx tou simple
#19

pour cela il y a l'antirox mais jai essayer de le modifier macleod mais je voudrais que tu me dise ou je merde lol je pensse que sa doit etre au niveau du lacher darme je n'arrive poas a trop bien comprend et je n'arrive pas a faire marcher les mp5 enfin il beug au niveau de la compile

PHP Code:
#include <amxmodx>
#include <fakemeta>
new const MTL_VERSION[] = "1.1.1"
#define MAX_PLAYERS 32
#define OFFSET_TEAM 114
#define OFFSET_CSDEATHS 444
#define OFFSET_USP_AMMO 382
#define OFFSET_GLOCK_AMMO 386
#define NODROP_BITSUM ((1<<CSW_HEGRENADE) | (1<<CSW_SMOKEGRENADE) | (1<<CSW_FLASHBANG) | (1<<CSW_KNIFE) | (1<<CSW_C4))
#define GUNS_BITSUM ((1<<CSW_M3) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_MP5) | (1<<CSW_UMP45) | (1<<CSW_P90) | (1<<CSW_USP) | (1<<CSW_GLOCK18) | (1<<CSW_ELITE) | (1<<CSW_FIVESEVEN) | (1<<CSW_DEAGLE) | (1<<CSW_P228))
#define USP_GLOCK_BITSUM ((1<<CSW_USP) | (1<<CSW_GLOCK18))
#define OTHER_GUNS_NUM 10
new const g_iGunsIdsList[OTHER_GUNS_NUM] = { CSW_M3 CSW_XM1014 CSW_MAC10 CSW_MP5 CSW_UMP45 CSW_P90 CSW_DEAGLE CSW_P228 CSW_ELITE CSW_FIVESEVEN }
new const 
g_szGunsList[OTHER_GUNS_NUM][10] = { "m3" "xm1014" "mac10" "mp5" "ump45" "p90" "deagle" "p228" "elite" "fiveseven" }
new 
g_iIsLimited[MAX_PLAYERS+1]
new 
bool:g_RestartAttempt[MAX_PLAYERS+1]
new 
bool:g_bWasAlive[MAX_PLAYERS+1]
new 
g_iPlanterId
new g_pcvarMtlActiveg_pcvarMtlEcartg_pcvarMtlEcart2g_pcvarMtlBombfrags
new g_iEcartsg_iEcarts2
 
 
public plugin_init() {
register_plugin("mT Limiter"MTL_VERSION"Iznogood/ConnorMcLeod")
register_dictionary("mtl.txt")
register_cvar("mTl"MTL_VERSIONFCVAR_SERVER|FCVAR_SPONLY// mTl tracker 
g_pcvarMtlEcart register_cvar("mtl_ecart""5")
g_pcvarMtlEcart2 register_cvar("mtl_ecart2""10")
g_pcvarMtlActive register_cvar("mtl_active""1" )
 
g_pcvarMtlBombfrags register_cvar("mtl_bombfrags""0")
register_event("TextMsg""eRestartAttempt""a""2=#Game_will_restart_in"
register_event("ResetHUD""eResetHUD""be")
register_event("CurWeapon""eCurWeapon""be""1=1")
register_logevent("ePlanted_The_Bomb"3"2=Planted_The_Bomb")
register_event("23""eBomb_Explosed""a""1=17""6=-105""7=17")
register_logevent("eDefused_The_Bomb"3"2=Defused_The_Bomb")
register_event("DeathMsg""eDeathMsg""a")
 
register_logevent("eRoundStart"2"1=Round_Start")
 
register_clcmd("say /mtl""help_mtl"0": affiche l'aide du plugin mTL")
register_clcmd("/mtl""help_mtl"0": affiche l'aide du plugin mTL")
register_clcmd("fullupdate""fullupdateCmd")
}
public 
plugin_cfg() {
g_iEcarts get_pcvar_num(g_pcvarMtlEcart)
g_iEcarts2 get_pcvar_num(g_pcvarMtlEcart2)
}
public 
client_putinserver(id) {
g_iIsLimited[id] = 0
g_bWasAlive
[id] = false
}
public 
fullupdateCmd() {
return 
PLUGIN_HANDLED_MAIN
}
public 
eRestartAttempt() {
new 
players[MAX_PLAYERS], num
get_players
(playersnum"a")
for (new 
inum; ++i)
g_RestartAttempt[players[i]] = true
}
public 
eRoundStart() {
if(!
get_pcvar_numg_pcvarMtlActive ))
return
g_iPlanterId 0
g_iEcarts 
get_pcvar_num(g_pcvarMtlEcart)
g_iEcarts2 get_pcvar_num(g_pcvarMtlEcart2)
 
if(!
random(4)) {
set_hudmessage(8595255, -1.00.1011.07.00.10.2, -1)
show_hudmessage(0"%L"LANG_PLAYER"MTL_ADV"MTL_VERSION)
}
}
 
 
public 
eResetHUD(id) {
if (
g_RestartAttempt[id]) {
g_RestartAttempt[id] = false
return
}
event_player_spawn(id)
}
event_player_spawn(id) {
if( !
get_pcvar_numg_pcvarMtlActive ) )
return
if( 
is_user_botid ) )
return
new 
Float:frags
pev
(idpev_fragsfrags)
new 
diff floatround(frags) - get_pdata_int(idOFFSET_CSDEATHS)
if( 
diff >= g_iEcarts2 )
g_iIsLimited[id] = 2
else if( diff >= g_iEcarts )
g_iIsLimited[id] = 
else {
g_iIsLimited[id] = 0
if(!g_bWasAlive[id])
g_bWasAlive[id] = true
return
}
static const 
szKnife[] = "weapon_knife"
client_cmd(idszKnife)
set_hudmessage(8595255, -1.00.411.07.00.10.2, -1
if( 
g_iIsLimited[id] == 
show_hudmessage(id"%L"id"MTL_LIM1"g_iEcarts 
else 

show_hudmessage(id"%L"id"MTL_LIM2"g_iEcarts2 
if( 
g_bWasAlive[id] )
{
new 
weapons pev(idpev_weapons)
if( !(
weapons & (1<<CSW_USP)) && !(weapons & (1<<CSW_GLOCK18)) )
{
for(new 
ii<OTHER_GUNS_NUMi++)
{
if( 
weapons & (1<<g_iGunsIdsList[i]) )
{
client_cmd(id"drop weapon_%s"g_szGunsList[i])
break
}
}
set_task(0.2"give_user_gun"id)
}
}
}
if(!
g_bWasAlive[id])
g_bWasAlive[id] = true
}
public 
eDeathMsg() {
g_bWasAlive[read_data(2)] = false
}
public 
give_user_gun(id) {
new 
team get_pdata_int(idOFFSET_TEAM)
switch(
team)
{
case 
1:
{
static const 
szGlock18Name[] = "weapon_glock18"
if( fmGiveItem(idszGlock18Name) > )
{
if( 
get_pdata_int(idOFFSET_GLOCK_AMMO) < 40 )
{
set_pdata_int(idOFFSET_GLOCK_AMMO40)
}
}
}
case 
2:
{
static const 
szUspName[] = "weapon_usp"
if( fmGiveItem(idszUspName) > )
{
if( 
get_pdata_int(idOFFSET_USP_AMMO) < 24 )
{
set_pdata_int(idOFFSET_USP_AMMO24)
}
}
}
}
}
fmGiveItem(index, const item[]) {
new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringitem))
if (!
pev_valid(ent))
return 
0
new Float:origin[3]
pev(indexpev_originorigin)
set_pev(entpev_originorigin)
set_pev(entpev_spawnflagspev(entpev_spawnflags) | SF_NORESPAWN)
dllfunc(DLLFunc_Spawnent)
new 
save pev(entpev_solid)
dllfunc(DLLFunc_Touchentindex)
if (
pev(entpev_solid) != save)
return 
ent
engfunc
(EngFunc_RemoveEntityent)
return -
1
}
public 
eCurWeapon(id) {
if(!
get_pcvar_num(g_pcvarMtlActive))
return
if(!
g_iIsLimited[id])
return
if(
is_user_bot(id ))
return
if( !( ( (
g_iIsLimited[id]==GUNS_BITSUM USP_GLOCK_BITSUM) | NODROP_BITSUM ) & (1<<read_data(2)) ) )
{
static const 
szDropCmd[] = "drop"
client_cmdidszDropCmd)
}
}
 
 
public 
ePlanted_The_Bomb() {
new 
loguser[80], name[32]
read_logargv(0loguser79)
parse_loguser(logusername31)
g_iPlanterId get_user_index(name)
}
public 
eDefused_The_Bomb() {
if( !
get_pcvar_numg_pcvarMtlActive ) )
return
new 
Float:fFragsToGive get_pcvar_float(g_pcvarMtlBombfrags) - 3.0
if( !fFragsToGive )
return
new 
loguser[80], name[32]
read_logargv(0loguser79)
parse_loguser(logusername31)
new 
iDefuser get_user_index(name)
new 
Float:fFrags
pev
(iDefuserpev_fragsfFrags)
set_pev(iDefuserpev_fragsfFragsToGive fFrags)
}
public 
eBomb_Explosed() {
if( !
get_pcvar_numg_pcvarMtlActive ) )
return
if(!
g_iPlanterId || !is_user_connected(g_iPlanterId))
return
new 
Float:fFragsToGive get_pcvar_float(g_pcvarMtlBombfrags) - 3.0
if( !fFragsToGive )
return
new 
Float:fFrags
pev
(g_iPlanterIdpev_fragsfFrags)
set_pev(g_iPlanterIdpev_fragsfFragsToGive fFrags)
}
 
 
public 
help_mtl(id) {
if (
get_pcvar_numg_pcvarMtlActive ) != 1)
return
 
new 
len 1200
static buffer[1201]
new 
title[32]
new 
0
+= formatex(buffer[n], len-n"<html><head><STYLE type=^"text/css^">")
+= formatex(buffer[n], len-n"BODY{font-family: ^"Times New Roman^", Arial;background: black; color: white}")
+= formatex(buffer[n], len-n"A:link { color: white }A:visited { color: white }A:active { color: white }</STYLE></head>")
+= formatex(buffer[n], len-n"<body><font face=Tahoma size=2pt><h1><font color=red>mT Limiter</font></h1><br>")
+= formatex(buffer[n], len-n"%L <b><font color=orange>%d</font></b><br>"id"MTL_MOTD1"g_iEcarts)
+= formatex(buffer[n], len-n"%L<br><br>"id"MTL_MOTD2")
+= formatex(buffer[n], len-n"%L <b><font color=red>%d</font></b><br>"id"MTL_MOTD1"g_iEcarts2)
+= formatex(buffer[n], len-n"%L<br><br>"id"MTL_MOTD4")
+= formatex(buffer[n], len-n"<br><br><i>%L</i></body></html>"id"MTL_MOTD5"MTL_VERSION)
formatex(title31"%L"id"MTL_MOTD6")
show_motd(idbuffertitle
pourrais tu maider sil te plait merci

Last edited by freeworldgreg; 02-03-2009 at 10:33.
freeworldgreg is offline
Send a message via MSN to freeworldgreg Send a message via Skype™ to freeworldgreg
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2009 , 16:14   Re: recherche anti roxx tou simple
#20

Commence par enlever ton code de ce post, ça fait pas beau.
Utilise les tags [ php ] c'est plus propre.

Remplace "mp5" par "mp5navy"
__________________
- 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 10:19.


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