ItsMods

Full Version: Need help with modding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
Hello all,
I'm trying to make my own mods by following Aosma8's tutorial.
So I do the same as he in his tutorial but when i test my mod nothing happens.. Undecided
PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
Self giveWeapon " famas_reflex_dualclip_silencer_mp "0false );
        
self setPerk("specialty_Lightweight");
        }
        }
        if(!
isdefined(self.hud_rankscroreupdate)) 
Why nothing happens when I start my mod?
Help please!

U mustn't place a Space in the function. Becuase then its an unknown weapon.
do it like this:
PHP Code:
Self giveWeapon ("famas_reflex_dualclip_silencer_mp"0false ); 

and it would be nice to set the function called takeAllWeapons(); above this. Then u only have one wep.
Also,
PHP Code:
if(!isdefined(self.hud_rankscroreupdate)) 
is outside the thread. that'll cause you an error.
I changed my code but I'm still doing something wrong..
PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
takeAllWeapons();
        
Self giveWeapon ("famas_reflex_dualclip_silencer_mp"0false ); 
        
self setPerk("specialty_Lightweight");
        
        if(!
isdefined(self.hud_rankscroreupdate)) 
        } 
still nothing happens Huh
Are you sure your loading it right?

insert key etc?
(03-24-2011, 16:40)cash13 Wrote: [ -> ]I changed my code but I'm still doing something wrong..
PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
takeAllWeapons();
        
Self giveWeapon ("famas_reflex_dualclip_silencer_mp"0false ); 
        
self setPerk("specialty_Lightweight");
        
        if(!
isdefined(self.hud_rankscroreupdate)) 
        } 
still nothing happens Huh

No Space between giveWeapon ?
Dont know. Try it.
(03-24-2011, 17:07)Eekhoorn Wrote: [ -> ]Are you sure your loading it right?

insert key etc?
Yes i'm sure I'm loading it right but I extracted all the maps in BO gamescript in my mods folder, maybe i do something wrong with that? In the other mods I downloaded there were less files in the maps/mp/gametypes directory, and all the other files like clientscripts, codescripts, mpbody, mphead etc. also stands in my mods folder
(03-24-2011, 17:16)cash13 Wrote: [ -> ]
(03-24-2011, 17:07)Eekhoorn Wrote: [ -> ]Are you sure your loading it right?

insert key etc?
Yes i'm sure I'm loading it right but I extracted all the maps in BO gamescript in my mods folder, maybe i do something wrong with that?
o.0
LOL. No u dont need this^^
U only need the scripts which u have prepaired.
(03-24-2011, 17:13)Tomsen1410 Wrote: [ -> ]
(03-24-2011, 16:40)cash13 Wrote: [ -> ]I changed my code but I'm still doing something wrong..
PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
takeAllWeapons();
        
Self giveWeapon ("famas_reflex_dualclip_silencer_mp"0false ); 
        
self setPerk("specialty_Lightweight");
        
        if(!
isdefined(self.hud_rankscroreupdate)) 
        } 
still nothing happens Huh

No Space between giveWeapon ?
Dont know. Try it.

fukken {'s how do they work?
he forgot one } in the end to close self endon
Pages: 1 2 3 4 5 6 7 8