PLayFF-ForumPlugin
Bienvenu sur le Forum Vous aller decouvivre des Mode tuto plugin plein de hose se forum et en cours merci de vous inscrire ^^

Mode Furien [Mode jeux]

Voir le sujet précédent Voir le sujet suivant Aller en bas

Mode Furien [Mode jeux]

Message  -(GoOD|STrIKeR)- Haribo le Dim 18 Sep - 11:27

Mode Furien

par Gilbert le Dim 12 Déc 2010, 17:17


Description:
Ce Mode permet de joué au "Mode Furien"
Mode assé connue
Le but est que les terro sont très rapide , ne possède que le cut et des grenades et les ct eux ont des armes mais vont a la vitesse normal
Les terro ont aussi de la gravité et son invisible quand ils sont immobile au cut
Cvar:
amx_furien_maxspeed "400" par default : règle la vitesse des furiens
amx_furien_gravity "0.375" par default : règle la gravity des furiens

Codes :
Mode Furien:

Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>

#define VERSION "0.0.2"

#define MAX_PLAYERS 32

#define Ham_Player_ResetMaxSpeed Ham_Item_PreFrame

new g_pCvarGravity, g_pCvarMaxSpeed

public plugin_init()
{
register_plugin("Furiens", VERSION, "ConnorMcLeod")

g_pCvarGravity = register_cvar("amx_furien_gravity", "0.375")
g_pCvarMaxSpeed = register_cvar("amx_furien_maxspeed", "400")

RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
RegisterHam(Ham_Player_ResetMaxSpeed, "player", "Player_ResetMaxSpeed", 1)

new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, "check_speed")
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 0.1)
register_think("check_speed", "Set_Terrorist_Visibility")

set_cvar_num("sv_maxspeed", 999)
}

public client_connect( id )
{
client_cmd(id, "cl_forwardspeed 999;cl_sidespeed 999;cl_backspeed 999")
}

public Player_Spawn_Post( id )
{
if( is_user_alive(id) )
{
if( cs_get_user_team(id) == CS_TEAM_T )
{
set_user_gravity(id, get_pcvar_float(g_pCvarGravity))
set_user_footsteps(id, 1)
}
else
{
set_user_footsteps(id, 0)
}

set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
}
}

public Player_ResetMaxSpeed( id )
{
if( is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T && get_user_maxspeed(id) != -1.0 )
{
set_user_maxspeed(id, get_pcvar_float(g_pCvarMaxSpeed))
}
}

public Set_Terrorist_Visibility( iEnt )
{
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 0.1)

new iPlayers[MAX_PLAYERS], iNum, id, Float:fVecVelocity[3], iSpeed
get_players(iPlayers, iNum, "ae", "TERRORIST")

for(new i; i<iNum; i++)
{
id = iPlayers[i]
if( get_user_weapon(id) == CSW_KNIFE )
{
entity_get_vector(id, EV_VEC_velocity, fVecVelocity)
iSpeed = floatround( vector_length(fVecVelocity) )
if( iSpeed < 255 )
{
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, iSpeed)
}
else
{
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
}
}
else
{
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
}
}
}

Arme Furien, change team:

Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#include <fun>
#include <cstrike>


#define VERSION "0.0.1"
const MAX_PLAYERS = 32

public plugin_init()
{
register_plugin("deux plugin", VERSION, "Gilbert")
RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
register_event("SendAudio", "Event_SendAudio_MRAD_ctwin", "a", "1=0", "2=%!MRAD_ctwin")
}

public plugin_precache()
{
new iEnt
while( iEnt <= 0 )
{
iEnt = create_entity("info_map_parameters")
}
DispatchKeyValue(iEnt, "buying", "3")
DispatchSpawn(iEnt)
}

public pfn_keyvalue( iEnt )
{
new szClassName[32], szCrap[2]
copy_keyvalue(szClassName, charsmax(szClassName), szCrap, charsmax(szCrap), szCrap, charsmax(szCrap))
if( equal(szClassName, "info_map_parameters") )
{
remove_entity(iEnt)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}

public plugin_cfg()
{
set_cvar_float("sv_restart", 1.0)
}

public Player_Spawn(id)
{
if(is_user_alive(id))
{

strip_user_weapons(id)


switch(cs_get_user_team(id))
{
case
CS_TEAM_T:
{
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_smokegrenade")
give_item(id,"weapon_flashbang")

}

case CS_TEAM_CT:
{
give_item(id,"weapon_knife")
give_item(id,"weapon_deagle")
cs_set_user_bpammo( id, CSW_DEAGLE, 35)
give_item(id,"weapon_m4a1")
cs_set_user_bpammo( id, CSW_M4A1, 90)
}
}

}
}

public Event_SendAudio_MRAD_ctwin()
{
new iPlayers[MAX_PLAYERS], iNum, id
get_players(iPlayers, iNum)
for(new i; i<iNum; i++)
{
id = iPlayers[i]
switch( cs_get_user_team(id) )
{
case CS_TEAM_T:
{
cs_set_user_team(id, CS_TEAM_CT, CS_CT_GIGN)
}
case CS_TEAM_CT:
{
cs_set_user_team(id, CS_TEAM_T, CS_T_LEET)
}
}
}
}

Rajouter d'autre code comme un shop,......etc merci !
(Les codes sont a compiler séparément)

-(GoOD|STrIKeR)- Haribo
Admin

Messages : 68
Date d'inscription : 18/09/2011

Voir le profil de l'utilisateur http://tutoriel-pluging-mod.1forumgratuit.com

Revenir en haut Aller en bas

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum