Raised This Month: $99 Target: $400
 24% 

[L4D]Spawn x amount special/ common infected


Post New Thread Reply   
 
Thread Tools Display Modes
imdawe
BANNED
Join Date: Aug 2011
Old 08-25-2012 , 22:50   Re: [L4D]Spawn x amount special/ common infected
Reply With Quote #41

Quote:
public SpawnZombie(Float:position[3], String:type[], number)
{
new entity = CreateEntityByName("info_zombie_spawn");
DispatchKeyValue(entity, "population", type);
DispatchKeyValue(entity, "AttackOnSpawn", "1");
DispatchSpawn(entity);
TeleportEntity(entity, position, NULL_VECTOR, NULL_VECTOR);
for(new i=0;i<number;++i)
AcceptEntityInput(entity, "SpawnZombie");
AcceptEntityInput(entity, "Kill");
}
imdawe is offline
Send a message via MSN to imdawe
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-21-2012 , 09:33   Re: [L4D]Spawn x amount special/ common infected
Reply With Quote #42

Quote:
Originally Posted by dacomb View Post
This plugin is awesome! Thanks!

I wanted to be able to add it to my admin menu though so I edited my admin custom file with this:

Code:
         "Give Player Weapon"
        {
            "cmd"                "sm_give #1 #2"
            "execute"            "player"
            "1"
            {
                "type"         "list"
                "title"        "Item:"
                "1"            "ammo"
                "1."            "Full Ammo"
                "2"            "pistol"
                "2."            "Pistol"
                "3"            "weapon_SMG"
                "3."            "SMG"
                "4"            "pumpshotgun"
                "4."            "Pump Shotgun"
                "5"            "autoshotgun"
                "5."            "Auto Shotgun"
                "6"            "rifle"
                "6."            "Assault Rifle"
                "7"            "hunting_rifle"
                "7."            "Hunting Rifle"
                "8"            "pipe_bomb"
                "8."            "Pipe Bomb"
                "9"            "molotov"
                "9."            "Molotov"
                "10"            "gascan"
                "10."            "Gas Can"
                "11"            "propane_tank"
                "11."            "Propane Tank"
                "12"            "oxygen_tank"
                "12."            "Oxygen Tank"
                "13"            "first_aid_kit"
                "13."            "First Aid Kit"
                "14"            "pain_pills"
                "14."            "Pills"
            }
            "2"
            {
                "type"         "player"
                "method"        "name"
                "title"        "Player to Give to"

            }
        }
        "Spawn Special Infected"
        {
            "cmd"            "sm_spawn #1 #2"
            "execute"        "player"
            "1"
            {
                "type"         "list"
                "title"        "Special Infected:"
                "1"            "common"
                "1."            "Common Infected"
                "2"            "tank"
                "2."            "Tank"
                "3"            "witch"
                "3."            "Witch"
                "4"            "boomer"
                "4."            "Boomer"
                "5"            "hunter"
                "5."            "Hunter"
                "6"            "smoker"
                "6."            "Smoker"
            }
            "2"
            {
                "type"         "list"
                "title"        "Number of:"
                "1"            "1"
                "2"            "5"
                "3"            "10"
                "4"            "20"
                "5"            "50"
                "6"            "70"
                "7"            "100"
            }

        }
Now giving items to players is so much easier! Thanks again!
Hello,

this doesn't work
eric0279 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:25.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode