Avatar billede bilbodog Nybegynder
04. juli 2012 - 04:47 Der er 1 løsning

Python scripting i Source! Give command!

Hej Eksperten.dk bruger! Jeg er igang med at lave en lille menu i Source ved hjælp af Python. Men jeg kom dertil jeg ikk kunne finde ud af hvordan man får den til at give et våben til den der har menu'en åben. Koden ser sådan her ud:

import es
import popuplib
import cmdlib

bilbodog_admins = ['STEAM_0:1:25150824', 'STEAM_0:1:18864754', 'STEAM_0:0:30680227', 'STEAM_0:1:37580344', 'STEAM_0:0:22618275', 'STEAM_0:1:31889543']

# Casper Thomsen: STEAM_0:1:25150824
# Andreas Gantriis: STEAM_0:1:18864754
# Peter Toft: STEAM_0:0:31227888
# Bo Strange: STEAM_0:1:37580344
# Victor Le Breton: STEAM_0:0:30680227
# Johnny Hjorth Holm: STEAM_0:0:22618275
# Kristoffer Kirkegaard: STEAM_0:1:31889543

info = es.AddonInfo()
info.name = 'bilbodog Vaaben Menu'
info.version = '1.0'
info.basename = 'Vaaben Menu'
info.author = 'bilbodog'

def load():
    cmdlib.registerSayCommand('!bvm', bilbodogcheck, 'Send Admin Build Menu')
    global bilbodog, bilbodogSelf, bilbodogSelf2, bilbodogSelf3, bilbodogOther, bilbodogcredit
   
    bilbodog = popuplib.create('bilbodog')
    bilbodog.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodog.addline('Vaaben Menu - Hvem vil De give et vaaben?')
    bilbodog.addline('--------------------------------------------------')
    bilbodog.addline('->1. Mig selv')
    bilbodog.addline('->2. Andre spillere')
    bilbodog.addline('->3. Kredit')
    bilbodog.addline('--------------------------------------------------')
    bilbodog.addline('0 Luk')
    bilbodog.menuselect = bilbodogscript

    bilbodogSelf = popuplib.create('bilbodogSelf')
    bilbodogSelf.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf.addline('Vaaben Menu - Mig selv')
    bilbodogSelf.addline('--------------------------------------------------')
    bilbodogSelf.addline('->1. Haandpistoler')
    bilbodogSelf.addline('->2. Stormgevaerer')
    bilbodogSelf.addline('->3. Haglgevaerer')
    bilbodogSelf.addline('->4. Maskinepistoler')
    bilbodogSelf.addline('->5. Sniper Vaaben')
    bilbodogSelf.addline('->6. Maskingevaer')
    bilbodogSelf.addline('->7. Udstyr')
    bilbodogSelf.addline('->8. Vaaben Saet')
    bilbodogSelf.addline('--------------------------------------------------')
    bilbodogSelf.addline('->9. Tilbage')
    bilbodogSelf.addline('0. Luk')
    bilbodogSelf.menuselect = bilbodogSelfscript
   
    bilbodogSelf2 = popuplib.create('bilbodogSelf2')
    bilbodogSelf2.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf2.addline('Vaaben Menu - Mig selv - Haandpistoler')
    bilbodogSelf2.addline('--------------------------------------------------')
    bilbodogSelf2.addline('->1. G18')
    bilbodogSelf2.addline('->2. USP45')
    bilbodogSelf2.addline('->3. P228')
    bilbodogSelf2.addline('->4. Desert Eagle')
    bilbodogSelf2.addline('->5. Five-Seven')
    bilbodogSelf2.addline('->6. Dual Elite')
    bilbodogSelf2.addline('--------------------------------------------------')
    bilbodogSelf2.addline('->9. Tilbage')
    bilbodogSelf2.addline('0. Luk')
    bilbodogSelf2.menuselect = bilbodogSelf2script
   
    bilbodogSelf3 = popuplib.create('bilbodogSelf3')
    bilbodogSelf3.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf3.addline('Vaaben Menu - Mig selv - Assault Rifles')
    bilbodogSelf3.addline('--------------------------------------------------')
    bilbodogSelf3.addline('->1. Galil')
    bilbodogSelf3.addline('->2. Famas')
    bilbodogSelf3.addline('->3. AK-47')
    bilbodogSelf3.addline('->4. M4A1')
    bilbodogSelf3.addline('->5. SG-552 Commando')
    bilbodogSelf3.addline('->6. AUG')
    bilbodogSelf3.addline('--------------------------------------------------')
    bilbodogSelf3.addline('->9. Tilbage')
    bilbodogSelf3.addline('0. Luk')
    bilbodogSelf3.menuselect = bilbodogSelf3script
   
    bilbodogSelf4 = popuplib.create('bilbodogSelf4')
    bilbodogSelf4.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf4.addline('Vaaben Menu - Mig selv - Haglgevaerer')
    bilbodogSelf4.addline('--------------------------------------------------')
    bilbodogSelf4.addline('->1. Benelli M3')
    bilbodogSelf4.addline('->2. Benelli XM1014')
    bilbodogSelf4.addline('--------------------------------------------------')
    bilbodogSelf4.addline('->9. Tilbage')
    bilbodogSelf4.addline('0. Luk')
    bilbodogSelf4.menuselect = bilbodogSelf4script
   
    bilbodogSelf5 = popuplib.create('bilbodogSelf5')
    bilbodogSelf5.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf5.addline('Vaaben Menu - Mig selv - Maskingevaerer')
    bilbodogSelf5.addline('--------------------------------------------------')
    bilbodogSelf5.addline('->1. TMP')
    bilbodogSelf5.addline('->2. MAC-10')
    bilbodogSelf5.addline('->3. MP5')
    bilbodogSelf5.addline('->4. UMP45')
    bilbodogSelf5.addline('->5. P90')
    bilbodogSelf5.addline('--------------------------------------------------')
    bilbodogSelf5.addline('->9. Tilbage')
    bilbodogSelf5.addline('0. Luk')
    bilbodogSelf5.menuselect = bilbodogSelf5script
   
    bilbodogSelf6 = popuplib.create('bilbodogSelf6')
    bilbodogSelf6.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf6.addline('Vaaben Menu - Mig selv - Sniper Vaaben')
    bilbodogSelf6.addline('--------------------------------------------------')
    bilbodogSelf6.addline('->1. Scout')
    bilbodogSelf6.addline('->2. SG-550 Sniper')
    bilbodogSelf6.addline('->3. AWP')
    bilbodogSelf6.addline('->4. G3/SG-1 Sniper Rifle')
    bilbodogSelf6.addline('--------------------------------------------------')
    bilbodogSelf6.addline('->9. Tilbage')
    bilbodogSelf6.addline('0. Luk')
    bilbodogSelf6.menuselect = bilbodogSelf6script
   
    bilbodogSelf7 = popuplib.create('bilbodogSelf7')
    bilbodogSelf7.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf7.addline('Vaaben Menu - Mig selv - Maskingevaer')
    bilbodogSelf7.addline('--------------------------------------------------')
    bilbodogSelf7.addline('->1. Para')
    bilbodogSelf7.addline('--------------------------------------------------')
    bilbodogSelf7.addline('->9. Tilbage')
    bilbodogSelf7.addline('0. Luk')
    bilbodogSelf7.menuselect = bilbodogSelf7script
   
    bilbodogSelf8 = popuplib.create('bilbodogSelf8')
    bilbodogSelf8.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf8.addline('Vaaben Menu - Mig selv - Udstyr')
    bilbodogSelf8.addline('--------------------------------------------------')
    bilbodogSelf8.addline('->1. Flashbang')
    bilbodogSelf8.addline('->2. HE Grenade')
    bilbodogSelf8.addline('->3. Smoke Grenade')
    bilbodogSelf8.addline('->4. 100 HP')
    bilbodogSelf8.addline('->5. 100 Armor')
    bilbodogSelf8.addline('->6. Kniv')
    bilbodogSelf8.addline('->7. Bomb')
    bilbodogSelf8.addline('->8. Defuse Kit')
    bilbodogSelf8.addline('--------------------------------------------------')
    bilbodogSelf8.addline('->9. Tilbage')
    bilbodogSelf8.addline('0. Luk')
    bilbodogSelf8.menuselect = bilbodogSelf8script
   
    bilbodogSelf9 = popuplib.create('bilbodogSelf9')
    bilbodogSelf9.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogSelf9.addline('Vaaben Menu - Mig selv - Vaaben saet')
    bilbodogSelf9.addline('--------------------------------------------------')
    bilbodogSelf9.addline('->1. M4A1, Deagle, Nades, Armor')
    bilbodogSelf9.addline('->2. M4A1, Elite, Nades, Armor')
    bilbodogSelf9.addline('->3. AK47, Deagle, Nades, Armor')
    bilbodogSelf9.addline('->4. AK47, Elite, Nades, Armor')
    bilbodogSelf9.addline('->5. AWP, Deagle, Nades, Armor')
    bilbodogSelf9.addline('->6. AWP, Elite, Nades, Armor')
    bilbodogSelf9.addline('--------------------------------------------------')
    bilbodogSelf9.addline('->9. Tilbage')
    bilbodogSelf9.addline('0. Luk')
    bilbodogSelf9.menuselect = bilbodogSelf9script
   
    bilbodogOther = popuplib.create('bilbodogOther')
    bilbodogOther.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther.addline('Vaaben Menu - Anden spiller')
    bilbodogOther.addline('--------------------------------------------------')
    bilbodogOther.addline('->1. Haandpistoler')
    bilbodogOther.addline('->2. Stormgevaerer')
    bilbodogOther.addline('->3. Haglgevaerer')
    bilbodogOther.addline('->4. Maskinepistoler')
    bilbodogOther.addline('->5. Sniper Vaaben')
    bilbodogOther.addline('->6. Maskingevaer')
    bilbodogOther.addline('->7. Udstyr')
    bilbodogOther.addline('->8. Vaaben Saet')
    bilbodogOther.addline('--------------------------------------------------')
    bilbodogOther.addline('->9. Tilbage')
    bilbodogOther.addline('0. Luk')
    bilbodogOther.menuselect = bilbodogOtherscript
   
    bilbodogOther2 = popuplib.create('bilbodogOther2')
    bilbodogOther2.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther2.addline('Vaaben Menu - Anden spiller - Haandpistoler')
    bilbodogOther2.addline('--------------------------------------------------')
    bilbodogOther2.addline('->1. G18')
    bilbodogOther2.addline('->2. USP45')
    bilbodogOther2.addline('->3. P228')
    bilbodogOther2.addline('->4. Desert Eagle')
    bilbodogOther2.addline('->5. Five-Seven')
    bilbodogOther2.addline('->6. Dual Elite')
    bilbodogOther2.addline('--------------------------------------------------')
    bilbodogOther2.addline('->9. Tilbage')
    bilbodogOther2.addline('0. Luk')
    bilbodogOther2.menuselect = bilbodogOther2script
   
    bilbodogOther3 = popuplib.create('bilbodogOther3')
    bilbodogOther3.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther3.addline('Vaaben Menu - Anden spiller - Assault Rifles')
    bilbodogOther3.addline('--------------------------------------------------')
    bilbodogOther3.addline('->1. Galil')
    bilbodogOther3.addline('->2. Famas')
    bilbodogOther3.addline('->3. AK-47')
    bilbodogOther3.addline('->4. M4A1')
    bilbodogOther3.addline('->5. SG-552 Commando')
    bilbodogOther3.addline('->6. AUG')
    bilbodogOther3.addline('--------------------------------------------------')
    bilbodogOther3.addline('->9. Tilbage')
    bilbodogOther3.addline('0. Luk')
    bilbodogOther3.menuselect = bilbodogOther3script
   
    bilbodogOther4 = popuplib.create('bilbodogOther4')
    bilbodogOther4.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther4.addline('Vaaben Menu - Anden spiller - Haglgevaerer')
    bilbodogOther4.addline('--------------------------------------------------')
    bilbodogOther4.addline('->1. Benelli M3')
    bilbodogOther4.addline('->2. Benelli XM1014')
    bilbodogOther4.addline('--------------------------------------------------')
    bilbodogOther4.addline('->9. Tilbage')
    bilbodogOther4.addline('0. Luk')
    bilbodogOther4.menuselect = bilbodogOther4script
   
    bilbodogOther5 = popuplib.create('bilbodogOther5')
    bilbodogOther5.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther5.addline('Vaaben Menu - Anden spiller - Maskingevaerer')
    bilbodogOther5.addline('--------------------------------------------------')
    bilbodogOther5.addline('->1. TMP')
    bilbodogOther5.addline('->2. MAC-10')
    bilbodogOther5.addline('->3. MP5')
    bilbodogOther5.addline('->4. UMP45')
    bilbodogOther5.addline('->5. P90')
    bilbodogOther5.addline('--------------------------------------------------')
    bilbodogOther5.addline('->9. Tilbage')
    bilbodogOther5.addline('0. Luk')
    bilbodogOther5.menuselect = bilbodogOther5script
   
    bilbodogOther6 = popuplib.create('bilbodogOther6')
    bilbodogOther6.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther6.addline('Vaaben Menu - Anden spiller - Sniper Vaaben')
    bilbodogOther6.addline('--------------------------------------------------')
    bilbodogOther6.addline('->1. Scout')
    bilbodogOther6.addline('->2. SG-550 Sniper')
    bilbodogOther6.addline('->3. AWP')
    bilbodogOther6.addline('->4. G3/SG-1 Sniper Rifle')
    bilbodogOther6.addline('--------------------------------------------------')
    bilbodogOther6.addline('->9. Tilbage')
    bilbodogOther6.addline('0. Luk')
    bilbodogOther6.menuselect = bilbodogOther6script
   
    bilbodogOther7 = popuplib.create('bilbodogOther7')
    bilbodogOther7.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther7.addline('Vaaben Menu - Anden spiller - Maskingevaer')
    bilbodogOther7.addline('--------------------------------------------------')
    bilbodogOther7.addline('->1. Para')
    bilbodogOther7.addline('--------------------------------------------------')
    bilbodogOther7.addline('->9. Tilbage')
    bilbodogOther7.addline('0. Luk')
    bilbodogOther7.menuselect = bilbodogOther7script
   
    bilbodogOther8 = popuplib.create('bilbodogOther8')
    bilbodogOther8.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther8.addline('Vaaben Menu - Anden spiller - Udstyr')
    bilbodogOther8.addline('--------------------------------------------------')
    bilbodogOther8.addline('->1. Flashbang')
    bilbodogOther8.addline('->2. HE Grenade')
    bilbodogOther8.addline('->3. Smoke Grenade')
    bilbodogOther8.addline('->4. 100 HP')
    bilbodogOther8.addline('->5. 100 Armor')
    bilbodogOther8.addline('->6. Kniv')
    bilbodogOther8.addline('->7. Bomb')
    bilbodogOther8.addline('->8. Defuse Kit')
    bilbodogOther8.addline('--------------------------------------------------')
    bilbodogOther8.addline('->9. Tilbage')
    bilbodogOther8.addline('0. Luk')
    bilbodogOther8.menuselect = bilbodogOther8script
   
    bilbodogOther9 = popuplib.create('bilbodogOther9')
    bilbodogOther9.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogOther9.addline('Vaaben Menu - Anden spiller - Vaaben saet')
    bilbodogOther9.addline('--------------------------------------------------')
    bilbodogOther9.addline('->1. M4A1, Deagle, Nades, Armor')
    bilbodogOther9.addline('->2. M4A1, Elite, Nades, Armor')
    bilbodogOther9.addline('->3. AK47, Deagle, Nades, Armor')
    bilbodogOther9.addline('->4. AK47, Elite, Nades, Armor')
    bilbodogOther9.addline('->5. AWP, Deagle, Nades, Armor')
    bilbodogOther9.addline('->6. AWP, Elite, Nades, Armor')
    bilbodogOther9.addline('--------------------------------------------------')
    bilbodogOther9.addline('->9. Tilbage')
    bilbodogOther9.addline('0. Luk')
    bilbodogOther9.menuselect = bilbodogOther9script
   
    bilbodogcredit = popuplib.create('bilbodogcredit')
    bilbodogcredit.addline('---------------bilbodog Vaaben Menu---------------')
    bilbodogcredit.addline('Vaaben Menu - Kredit')
    bilbodogcredit.addline('--------------------------------------------------')
    bilbodogcredit.addline('Ejer : bilbodog')
    bilbodogcredit.addline('Hjaelper : mollerdog')
    bilbodogcredit.addline('Version : 1.0')
    bilbodogcredit.addline('Sprog : Dansk')
    bilbodogcredit.addline('Kode Sprog : Python')
    bilbodogcredit.addline('Udgivelses Dato : 4. juli 2012')
    bilbodogcredit.addline('--------------------------------------------------')
    bilbodogcredit.addline('->9. Tilbage')
    bilbodogcredit.addline('0 Luk')
    bilbodogcredit.menuselect = bilbodogcreditscript
       
# bilbodogscript
def bilbodogscript(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf.send(userid)
    elif choice == 2:
        bilbodogOther.send(userid)
    elif choice == 3:
        bilbodogcredit.send(userid)
       
# bilbodogSelfscript
def bilbodogSelfscript(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf2.send(userid)
    elif choice == 2:
    bilbodogSelf3.send(userid)
    elif choice == 3:
    bilbodogSelf4.send(userid)
    elif choice == 4:
    bilbodogSelf5.send(userid)
    elif choice == 5:
    bilbodogSelf6.send(userid)
    elif choice == 6:
    bilbodogSelf7.send(userid)
    elif choice == 7:
    bilbodogSelf8.send(userid)
    elif choice == 8:
    bilbodogSelf9.send(userid)
    elif choice == 9:
        bilbodog.send(userid)
       
# bilbodogSelf2script
def bilbodogSelf2script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf2.send(userid)
        es_give server_var(_popup_userid) weapon_glock
    elif choice == 2:
    bilbodogSelf2.send(userid)
    elif choice == 3:
    bilbodogSelf2.send(userid)
    elif choice == 4:
    bilbodogSelf2.send(userid)
    elif choice == 5:
    bilbodogSelf2.send(userid)
    elif choice == 6:
    bilbodogSelf2.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf3script
def bilbodogSelf3script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf3.send(userid)
    elif choice == 2:
    bilbodogSelf3.send(userid)
    elif choice == 3:
    bilbodogSelf3.send(userid)
    elif choice == 4:
    bilbodogSelf3.send(userid)
    elif choice == 5:
    bilbodogSelf3.send(userid)
    elif choice == 6:
    bilbodogSelf3.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf4script
def bilbodogSelf4script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf4.send(userid)
    elif choice == 2:
    bilbodogSelf4.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf5script
def bilbodogSelf5script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf5.send(userid)
    elif choice == 2:
    bilbodogSelf5.send(userid)
    elif choice == 3:
    bilbodogSelf5.send(userid)
    elif choice == 4:
    bilbodogSelf5.send(userid)
    elif choice == 5:
    bilbodogSelf5.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf6script
def bilbodogSelf6script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf6.send(userid)
    elif choice == 2:
    bilbodogSelf6.send(userid)
    elif choice == 3:
    bilbodogSelf6.send(userid)
    elif choice == 4:
    bilbodogSelf6.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf7script
def bilbodogSelf7script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf7.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf8script
def bilbodogSelf8script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf8.send(userid)
    elif choice == 2:
    bilbodogSelf8.send(userid)
    elif choice == 3:
    bilbodogSelf8.send(userid)
    elif choice == 4:
    bilbodogSelf8.send(userid)
    elif choice == 5:
    bilbodogSelf8.send(userid)
    elif choice == 6:
    bilbodogSelf8.send(userid)
    elif choice == 7:
    bilbodogSelf8.send(userid)
    elif choice == 8:
    bilbodogSelf8.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogSelf9script
def bilbodogSelf9script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf9.send(userid)
    elif choice == 2:
    bilbodogSelf9.send(userid)
    elif choice == 3:
    bilbodogSelf9.send(userid)
    elif choice == 4:
    bilbodogSelf9.send(userid)
    elif choice == 5:
    bilbodogSelf9.send(userid)
    elif choice == 6:
    bilbodogSelf9.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)
       
# bilbodogOtherscript
def bilbodogOtherscript(userid, choice, popupid):
    if choice == 1:
        bilbodogOther2.send(userid)
    elif choice == 2:
    bilbodogOther3.send(userid)
    elif choice == 3:
    bilbodogOther4.send(userid)
    elif choice == 4:
    bilbodogOther5.send(userid)
    elif choice == 5:
    bilbodogOther6.send(userid)
    elif choice == 6:
    bilbodogOther7.send(userid)
    elif choice == 7:
    bilbodogOther8.send(userid)
    elif choice == 8:
    bilbodogOther9.send(userid)
    elif choice == 9:
        bilbodog.send(userid)
       
# bilbodogOther2script
def bilbodogOther2script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther2.send(userid)
    elif choice == 2:
    bilbodogOther2.send(userid)
    elif choice == 3:
    bilbodogOther2.send(userid)
    elif choice == 4:
    bilbodogOther2.send(userid)
    elif choice == 5:
    bilbodogOther2.send(userid)
    elif choice == 6:
    bilbodogOther2.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther3script
def bilbodogOther3script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther3.send(userid)
    elif choice == 2:
    bilbodogOther3.send(userid)
    elif choice == 3:
    bilbodogOther3.send(userid)
    elif choice == 4:
    bilbodogOther3.send(userid)
    elif choice == 5:
    bilbodogOther3.send(userid)
    elif choice == 6:
    bilbodogOther3.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogSelf4script
def bilbodogSelf4script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther4.send(userid)
    elif choice == 2:
    bilbodogOther4.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther5script
def bilbodogOther5script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther5.send(userid)
    elif choice == 2:
    bilbodogOther5.send(userid)
    elif choice == 3:
    bilbodogOther5.send(userid)
    elif choice == 4:
    bilbodogOther5.send(userid)
    elif choice == 5:
    bilbodogOther5.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther6script
def bilbodogOther6script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther6.send(userid)
    elif choice == 2:
    bilbodogOther6.send(userid)
    elif choice == 3:
    bilbodogOther6.send(userid)
    elif choice == 4:
    bilbodogOther6.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther7script
def bilbodogOther7script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther7.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther8script
def bilbodogOther8script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther8.send(userid)
    elif choice == 2:
    bilbodogOther8.send(userid)
    elif choice == 3:
    bilbodogOther8.send(userid)
    elif choice == 4:
    bilbodogOther8.send(userid)
    elif choice == 5:
    bilbodogOther8.send(userid)
    elif choice == 6:
    bilbodogOther8.send(userid)
    elif choice == 7:
    bilbodogOther8.send(userid)
    elif choice == 8:
    bilbodogOther8.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogOther9script
def bilbodogOther9script(userid, choice, popupid):
    if choice == 1:
        bilbodogOther9.send(userid)
    elif choice == 2:
    bilbodogOther9.send(userid)
    elif choice == 3:
    bilbodogOther9.send(userid)
    elif choice == 4:
    bilbodogOther9.send(userid)
    elif choice == 5:
    bilbodogOther9.send(userid)
    elif choice == 6:
    bilbodogOther9.send(userid)
    elif choice == 9:
        bilbodogOther.send(userid)
       
# bilbodogcredit
def bilbodogcreditscript(userid, choice, popupid):
    if choice == 9:
        bilbodog.send(userid)
       
# bilbodogcheck
def bilbodogcheck(userid, args):
    steam = es.getplayersteamid(userid)
    if steam in bilbodog_admins:
        bilbodog.send(userid)
    else:
        es.tell(event_var['userid'], '#multi', '#greenDe har ikke adgang til denne kommando!')
       
def unload():
    cmdlib.unregisterSayCommand('!bvm')


Kortere sagt:

Jeg havde regnet med at denne kommando:

# bilbodogSelf2script
def bilbodogSelf2script(userid, choice, popupid):
    if choice == 1:
        bilbodogSelf2.send(userid)
        es_give server_var(_popup_userid) weapon_glock
    elif choice == 2:
    bilbodogSelf2.send(userid)
    elif choice == 3:
    bilbodogSelf2.send(userid)
    elif choice == 4:
    bilbodogSelf2.send(userid)
    elif choice == 5:
    bilbodogSelf2.send(userid)
    elif choice == 6:
    bilbodogSelf2.send(userid)
    elif choice == 9:
        bilbodogSelf.send(userid)


Var nok, meehn fandt ud af at:

es_give server_var(_popup_userid) weapon_glock

Den høre ikke indenunder Python den kommando?

Mangler bare det med våbnerne så er den færdig! Håber i kan hjælpe mig!

Takker på forehånd!
Avatar billede bilbodog Nybegynder
28. december 2014 - 18:29 #1
Fandt selv ud af det.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester