You are viewing our Forum Archives. To view or take place in current topics click here.
[Code] Toggle Golden Deagle - Default Weapon on spawn
Posted:
[Code] Toggle Golden Deagle - Default Weapon on spawnPosted:
Status: Offline
Joined: Feb 20, 201113Year Member
Posts: 33
Reputation Power: 1
Status: Offline
Joined: Feb 20, 201113Year Member
Posts: 33
Reputation Power: 1
Place On player spawn.
Self thread doWeapon();
Place anywhere after Player Spawn.
doWeapon()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "RB", "+frag" );
for ( ;; ) {
self waittill( "RB" );
if ( self GetStance() == "stand" ){
self iPrintlnBold("^0Default Weapon!");
self setClientDvar( "scr_drop_weapon", "defaultweapon_mp" );
setDevDvar( "scr_drop_weapon", "" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
}
self waittill( "RB" );
if ( self GetStance() == "stand" ){
self iPrintlnBold("^1Gold Deagle");
self setClientDvar( "scr_drop_weapon", "deserteaglegold_mp" );
setDevDvar( "scr_drop_weapon", "" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
}
}
}
this is not my work all credits go to ModsBABY HD
Self thread doWeapon();
Place anywhere after Player Spawn.
doWeapon()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "RB", "+frag" );
for ( ;; ) {
self waittill( "RB" );
if ( self GetStance() == "stand" ){
self iPrintlnBold("^0Default Weapon!");
self setClientDvar( "scr_drop_weapon", "defaultweapon_mp" );
setDevDvar( "scr_drop_weapon", "" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
}
self waittill( "RB" );
if ( self GetStance() == "stand" ){
self iPrintlnBold("^1Gold Deagle");
self setClientDvar( "scr_drop_weapon", "deserteaglegold_mp" );
setDevDvar( "scr_drop_weapon", "" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
}
}
}
this is not my work all credits go to ModsBABY HD
You are viewing our Forum Archives. To view or take place in current topics click here.