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

recherche anti roxx tou simple


  
 
 
Thread Tools Display Modes
freeworldgreg
Member
Join Date: Jan 2009
Old 02-03-2009 , 10:35   Re: recherche anti roxx tou simple
#21

a ouais c'est mieux lol merci

donc je vais essayer sa ce soir mais j'aurais toujours le probleme de l'achat je n'arrive pas a y acceder><

je me suis planter ou a ton avis
freeworldgreg is offline
Send a message via MSN to freeworldgreg Send a message via Skype™ to freeworldgreg
freeworldgreg
Member
Join Date: Jan 2009
Old 02-03-2009 , 10:39   Re: recherche anti roxx tou simple
#22

scuse pour le poste en surplus mais je vein de le compiler plus d'erreur deja sa c un bon point manque plus qu'a voir pour l'achat je fais des essait ce soir et je te dirais quoi sinon je t'enverrais deja la version avec les smg et ensuite je verrais pour rajouter une troisieme limitation qui sera que pour le cut la je pensse que ce sera plus chaud

biz a ce soir
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-03-2009 , 11:01   Re: recherche anti roxx tou simple
#23

biz
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
freeworldgreg
Member
Join Date: Jan 2009
Old 02-03-2009 , 14:00   Re: recherche anti roxx tou simple
#24

et voila un plugin mtl avec limitation 1 pour smg pompe deagle
et limitation deux pour usp, glock

PHP Code:
/* AMX Mod Plugin

* (c) Copyright 2007, Alban Cotillon 
* This file is provided as is (no warranties). 

* Utilisation :
* ____________
*
* Cvars :
* mtl_active : 1 pour activer le plugin , 0 pour le désactiver
* mtl_ecart <nbre> : Nombre entier indiquant l'écart frags/morts pour activer la 1ère restriction (--> smg's, pompes, pistolets)
* mtl_ecart2 <nbre> : Nombre entier indiquant l'écart frags/morts pour activer la 2ème restriction (--> glock & usp)
* mtl_bombfrags : nombre de frags attribués pour l'explosion ou le désamorçage de la bombe (defaut 3)
*
* Commandes :
* /mtl ou say /mtl : Aide
*
*
*
* Nécessite le module fakemeta !
* __________________________
*/ 
#include <amxmodx>
#include <fakemeta>
new const MTL_VERSION[] = "1.1.2"
#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_MP5NAVY) | (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_MP5NAVY CSW_UMP45 CSW_P90 CSW_DEAGLE CSW_P228 CSW_ELITE CSW_FIVESEVEN }
new const 
g_szGunsList[OTHER_GUNS_NUM][10] = {  "m3" "xm1014" "mac10" "mp5navy" "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/freeworldgreg")
 
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
 n 
+= 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)

et maintenant je vais essayer de rajouter une troisieme limitation pour le cut voili voilou

a toute tu me dit si je bosse pas bien connor
Attached Files
File Type: sma Get Plugin or Get Source (mtl.sma - 969 views - 8.6 KB)

Last edited by freeworldgreg; 02-24-2009 at 11:55.
freeworldgreg is offline
Send a message via MSN to freeworldgreg Send a message via Skype™ to freeworldgreg
Old 02-03-2009, 17:12
Levia
This message has been deleted by Levia.
Levia
Junior Member
Join Date: Jan 2009
Old 02-03-2009 , 17:24   Re: recherche anti roxx tou simple
#25

freeworldgreg , j ai essayé de compile ton plugin mais il y a des erreurs
les voici

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

/home/groups/amxmodx/tmp3/phpuBjJtY.sma(1) : error 055start of function body without function header
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(6) : error 010invalid function or declaration
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(12) : error 010invalid function or declaration
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(15) : error 010invalid function or declaration
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(18) : error 010invalid function or declaration
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(23) : warning 203symbol is never used"_hudmessage"
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(23) : warning 203symbol is never used"oat"
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(23) : warning 203symbol is never used"set_pev"
/home/groups/amxmodx/tmp3/phpuBjJtY.sma(23) : error 013no entry point (no public functions)

6 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpuBjJtY.amx (compile failed 
merci encore pour ton aide
Levia is offline
freeworldgreg
Member
Join Date: Jan 2009
Old 02-03-2009 , 17:41   Re: recherche anti roxx tou simple
#26

attend je regarde
freeworldgreg is offline
Send a message via MSN to freeworldgreg Send a message via Skype™ to freeworldgreg
freeworldgreg
Member
Join Date: Jan 2009
Old 02-03-2009 , 17:46   Re: recherche anti roxx tou simple
#27

je confirme je nes aucune erreur
il faut que tu mette la compile dans le bloc note puis tu lenregistre genre mtl mais il ne faut pas oublier le .sma

sinon je vois pas tu a du oublier des lignes

tine je vien de te le mettre en lien cliquable
Attached Files
File Type: sma Get Plugin or Get Source (mtl.sma - 863 views - 8.6 KB)

Last edited by freeworldgreg; 02-04-2009 at 04:09.
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-04-2009 , 00:49   Re: recherche anti roxx tou simple
#28

Tu n'as pas besoin d'attacher le fichier .amxx (c'est même interdit), le .sma suffit, un lien pour la compile est automatiquement généré.


Quote:
Originally Posted by freeworldgreg View Post
tu me dit si je bosse pas bien connor
J'ai pas regardé, à vrai dire je m'en...
Par contre y'a une version 1.1.3, ça serait bien de partir de celle là.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-04-2009 at 00:51.
ConnorMcLeod is offline
freeworldgreg
Member
Join Date: Jan 2009
Old 02-04-2009 , 04:08   Re: recherche anti roxx tou simple
#29

c cool mais je ne la trouve pas connor tu a un lien google et amxmodx je trouve rien
freeworldgreg is offline
Send a message via MSN to freeworldgreg Send a message via Skype™ to freeworldgreg
Levia
Junior Member
Join Date: Jan 2009
Old 02-04-2009 , 15:16   Re: recherche anti roxx tou simple
#30

un Grand merci ,je pense que ca fonctionne mais si la personne ne meurs pas pendant le round elle garde son arme principale (ak ou m4 ) et peux la garder jusqu'a quand elle meurs n'aurais tu pas une idée pour la faire droppe l'arme et qu elle ne sache plus la ramassé ,idem pour les autres armes aux niveau 2?

Last edited by Levia; 02-04-2009 at 16:06.
Levia 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 13:02.


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