Modificari necesare ale pluginurilor
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Negative <3
- Membru, skill +1
- Posts: 229
- Joined: 16 Jun 2015, 10:27
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 2 times
-
Contact:
06 Apr 2018, 00:53
Salut, ce are pluginul asta de nu imi arata skinul pe fondator?
- | Afiseaza codul
#include < amxmodx >
#include < cstrike >
public plugin_init ( )
{
register_plugin ( "AMX Admin Model" , "1.1.1" , "whitemike" );
register_event ( "ResetHUD" , "resetModel" , "b" );
}
public plugin_precache ( )
{
precache_model ( "models/player/fondator/fondator.mdl" );
}
public resetModel ( id )
{
if ( get_user_flags ( id ) == read_flags ( "abcdefghijklmopqrstu" ) )
{
if ( get_user_team ( id ) == 1 )
{
cs_set_user_model ( id , "fondator" );
}
else if ( get_user_team ( id ) == 2 )
{
cs_set_user_model ( id , "fondator" );
}
else
{
cs_reset_user_model ( id );
}
}
return PLUGIN_CONTINUE;
}
#pragma semicolon 1
Tin sa mentionez ca s-a descarcat la resurse dar pe sv nu imi apare... Oare e din cauza ca am modul zp si in zombieplague.ini am la admin_models un alt model? :D
-
A k c 3 n 7
- Super moderator
- Posts: 5138
- Joined: 25 Aug 2014, 21:31
- Detinator Steam: Da
- CS Status: who dares wins
- SteamID: Jandarmeria
- Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
- Fond eXtream: 0
- Location: Unknown
- Discord: remusakcent
- Has thanked: 4 times
- Been thanked: 46 times
06 Apr 2018, 01:30
vezi cu asta
- | Afiseaza codul
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#pragma semicolon 1
#define PLUGIN "Delayed Furien ModelChanger"
#define VERSION "1.2b"
#define SWITCH_TASK 112233
new const xmas_red1[ ] = "xmas_red1";
/*======================================= - ¦ Askhanar ¦ - =======================================*/
public plugin_precache( )
{
new ModelOrSoundPath[ 128 ];
formatex( ModelOrSoundPath, sizeof ( ModelOrSoundPath ) -1, "models/player/%s/%s.mdl", xmas_red1, xmas_red1 );
precache_model( ModelOrSoundPath );
}
/*======================================= - ¦ Askhanar ¦ - =======================================*/
public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );
RegisterHam( Ham_Spawn, "player", "Ham_PlayerSpawnPost", true );
}
/*======================================= - ¦ Askhanar ¦ - =======================================*/
public Ham_PlayerSpawnPost( id )
{
if( is_user_alive( id ) && get_user_flags(id) == read_flags ( "abcdefghijklmopqrstu" ) )
{
BeginDelayedModelChange( id );
}
}
/*======================================= - ¦ Askhanar ¦ - =======================================*/
public BeginDelayedModelChange( id )
{
switch( id )
{
case 1..6: set_task( 0.1, "ChangeUserModelWithDelay", id + SWITCH_TASK );
case 7..13: set_task( 0.2, "ChangeUserModelWithDelay", id + SWITCH_TASK );
case 14..20: set_task( 0.3, "ChangeUserModelWithDelay", id + SWITCH_TASK );
case 21..26: set_task( 0.4, "ChangeUserModelWithDelay", id + SWITCH_TASK );
case 27..32: set_task( 0.5, "ChangeUserModelWithDelay", id + SWITCH_TASK );
}
}
/*======================================= - ¦ Askhanar ¦ - =======================================*/
public ChangeUserModelWithDelay( id )
{
id -= SWITCH_TASK;
if( !is_user_connected( id ) ) return 1;
cs_set_user_model( id, xmas_red1 );
return 0;
}
/*======================================= - ¦ Askhanar ¦ - =======================================*/
-
Users browsing this forum: server_cmd and 10 guests