Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 70

Thread: Anyone can help me with my server?

  1. #41

    Default

    be sure my mod has the most zzzzzz in front of the name.... so it will load as last.

    mohaa first loads a mod that starts with a, than with b than with c.... etc etc.... so it will read zzzzz first and than zzzzzzzzz and the one with the most zzzzzz is the last mod and it will overwrite all the other mods... so be sure u my mod is the only mod or it has the most z's, it should work

  2. #42
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by Criminal View Post
    I will make probably in near future mod for making teleports in easy way, because I need it on my own server, but to this time you are on your own.
    And this????? WTF!!!! this is the REMO ONLY SNIPER + HI STANDARD SILENCED + 1 GRENADE mod

    wtf????????????????????!


  3. #43
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by 1337Smithy View Post
    You can also do:


    main:
    local.sniper[allies] = "models/weapons/springfield.tik"
    local.sniper[axis] = "models/weapons/kar98sniper.tik"
    local.grenade[allies] = "models/weapons/m2frag_grenade.tik"
    local.grenade[axis] = "models/weapons/steilhandgranate.tik"
    local.pistol = "models/weapons/silencedpistol.tik"

    // grab weapon
    waitframe
    local.weap_targetname = "w" + self.entnum
    self weaponcommand dual targetname (local.weap_targetname)

    //grab model
    local.weap = $(local.weap_targetname).model

    // we no longer need the weapon's targetname
    $(local.weap_targetname).targetname = NULL

    if(local.weap != local.sniper[self.dmteam] && local.weap != local.pistol && local.weap != local.grenade[self.dmteam])
    {
    self takeall
    waitframe
    self give local.sniper[self.dmteam]
    self give local.pistol
    self give local.grenade[self.dmteam]
    waitframe
    self use local.sniper[self.dmteam]
    }
    end

    And this????? WTF!!!! this is the REMO ONLY SNIPER + HI STANDARD SILENCED + 1 GRENADE mod

    wtf????????????????????!


  4. #44
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by Slimbips {sfx} View Post
    be sure my mod has the most zzzzzz in front of the name.... so it will load as last.

    mohaa first loads a mod that starts with a, than with b than with c.... etc etc.... so it will read zzzzz first and than zzzzzzzzz and the one with the most zzzzzz is the last mod and it will overwrite all the other mods... so be sure u my mod is the only mod or it has the most z's, it should work

    And this????? WTF!!!! this is the REMO ONLY SNIPER + HI STANDARD SILENCED + 1 GRENADE mod

    wtf????????????????????!


  5. #45

    Default

    It's enough to post once, really, follow rules of discussion in internet forums, you are simply spamming what commits nothing to community.
    Github - Steam - .Crimewavez#5285

  6. #46

    Default

    If it's doing that, check console to see if it says anything. If it is because it's trying to get a NIL entity (it doesn't exist), then add:


    main:
    local.sniper[allies] = "models/weapons/springfield.tik"
    local.sniper[axis] = "models/weapons/kar98sniper.tik"
    local.grenade[allies] = "models/weapons/m2frag_grenade.tik"
    local.grenade[axis] = "models/weapons/steilhandgranate.tik"
    local.pistol = "models/weapons/silencedpistol.tik"

    // grab weapon
    waitframe
    local.weap_targetname = "w" + self.entnum
    self weaponcommand dual targetname (local.weap_targetname)

    // if weapon doesn't exist
    if (!$(local.weap_targetname)) // <--------------********* include this *********
    end

    //grab model
    local.weap = $(local.weap_targetname).model

    // we no longer need the weapon's targetname
    $(local.weap_targetname).targetname = NULL

    if(local.weap != local.sniper[self.dmteam] && local.weap != local.pistol && local.weap != local.grenade[self.dmteam])
    {
    self takeall
    waitframe
    self give local.sniper[self.dmteam]
    self give local.pistol
    self give local.grenade[self.dmteam]
    waitframe
    self use local.sniper[self.dmteam]
    }
    end
    Last edited by 1337Smithy; March 24th, 2019 at 02:21 PM.

  7. #47
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by 1337Smithy View Post
    If it's doing that, check console to see if it says anything. If it is because it's trying to get a NIL entity (it doesn't exist), then add:


    main:
    local.sniper[allies] = "models/weapons/springfield.tik"
    local.sniper[axis] = "models/weapons/kar98sniper.tik"
    local.grenade[allies] = "models/weapons/m2frag_grenade.tik"
    local.grenade[axis] = "models/weapons/steilhandgranate.tik"
    local.pistol = "models/weapons/silencedpistol.tik"

    // grab weapon
    waitframe
    local.weap_targetname = "w" + self.entnum
    self weaponcommand dual targetname (local.weap_targetname)

    // if weapon doesn't exist
    if (!$(local.weap_targetname)) // <--------------********* include this *********
    end

    //grab model
    local.weap = $(local.weap_targetname).model

    // we no longer need the weapon's targetname
    $(local.weap_targetname).targetname = NULL

    if(local.weap != local.sniper[self.dmteam] && local.weap != local.pistol && local.weap != local.grenade[self.dmteam])
    {
    self takeall
    waitframe
    self give local.sniper[self.dmteam]
    self give local.pistol
    self give local.grenade[self.dmteam]
    waitframe
    self use local.sniper[self.dmteam]
    }
    end
    Delete all and copy this in this file?

    Click image for larger version. 

Name:	Sin título.jpg 
Views:	12 
Size:	55.8 KB 
ID:	2066

  8. #48

    Default

    Read all of the code block, and see which line you need to include in your .scr file that you've already been modifying...

  9. #49
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by 1337Smithy View Post
    If it's doing that, check console to see if it says anything. If it is because it's trying to get a NIL entity (it doesn't exist), then add:


    main:
    local.sniper[allies] = "models/weapons/springfield.tik"
    local.sniper[axis] = "models/weapons/kar98sniper.tik"
    local.grenade[allies] = "models/weapons/m2frag_grenade.tik"
    local.grenade[axis] = "models/weapons/steilhandgranate.tik"
    local.pistol = "models/weapons/silencedpistol.tik"

    // grab weapon
    waitframe
    local.weap_targetname = "w" + self.entnum
    self weaponcommand dual targetname (local.weap_targetname)

    // if weapon doesn't exist
    if (!$(local.weap_targetname)) // <--------------********* include this *********
    end

    //grab model
    local.weap = $(local.weap_targetname).model

    // we no longer need the weapon's targetname
    $(local.weap_targetname).targetname = NULL

    if(local.weap != local.sniper[self.dmteam] && local.weap != local.pistol && local.weap != local.grenade[self.dmteam])
    {
    self takeall
    waitframe
    self give local.sniper[self.dmteam]
    self give local.pistol
    self give local.grenade[self.dmteam]
    waitframe
    self use local.sniper[self.dmteam]
    }
    end
    Click image for larger version. 

Name:	shot0007.jpg 
Views:	9 
Size:	107.8 KB 
ID:	2067

  10. #50

    Default

    Smithy meant to check console after reproducing bug which you had encountered. Code he posted, should go to weapons.scr if error with NIL occurs, where BTW you had already posted the same code but withouth:


    // if weapon doesn't exist
    if (!$(local.weap_targetname)) // <--------------********* include this *********
    end


    line. I have no idea then why you decided to post it to springfield.tik which contains only weapon properties.
    Github - Steam - .Crimewavez#5285

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •