Results 1 to 5 of 5
  1. #1
    Rebitaay's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    Earth
    Posts
    45
    Reputation
    10
    Thanks
    1

    Activating a script on a player

    Can this be done? I got a script that spawns like 20-50 zombies on me, but is it possible to change the script around to activate it on a player?
    I use a Scroll Wheel style menu, like Toxiic's menu. I know of a script that gets all the players on the server, and generates a list of their names, you select the name, and it preforms the set script on them. Can anyone make a script like that to spawn zombies on them?

    Thanks,
    Reb

  2. #2
    ilovedayzlol's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    10
    My Mood
    Cheerful
    I think that's in rustlers im not to sure though because I've personally never used it.

  3. #3
    Leidan117's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Massachusetts
    Posts
    143
    Reputation
    14
    Thanks
    19
    My Mood
    Amused
    this should be what your looking for



    Code:
    _name = _this select 0;
    hint format ["Spawning Zombies on %1", _name];
    _tspawnzombie = format["if (name player == '%1') then
    {
    		for '_i' from 1 to 10 do
    		{
    		'ns_bloodsucker' createUnit [getpos player, group player, '_spawnAIS = this;'];
    		};
    };", _name];
    [_tspawnzombie] execVM "scr\exec.sqf";
    Global Ban's = 1
    Used Keys = 0

    Want to buy a Script Executer / injector - add my skype Phenrir33 and we can talk.

    Coding Languages + Experience

    C++ - 4years
    Pyton - 3years
    Java - 5years
    eAthena - 3years


    Basic Scripting 5+years

  4. #4
    Rebitaay's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    Earth
    Posts
    45
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Leidan117 View Post
    this should be what your looking for
    That looks like it should do it, thanks!

  5. #5
    Leidan117's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Massachusetts
    Posts
    143
    Reputation
    14
    Thanks
    19
    My Mood
    Amused
    anytime /tooshort
    Global Ban's = 1
    Used Keys = 0

    Want to buy a Script Executer / injector - add my skype Phenrir33 and we can talk.

    Coding Languages + Experience

    C++ - 4years
    Pyton - 3years
    Java - 5years
    eAthena - 3years


    Basic Scripting 5+years

Similar Threads

  1. [Request] Script To knock Player unconscious and Break Legs.
    By bowen2k12 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 14
    Last Post: 01-19-2013, 12:44 PM
  2. [WTS] Cheap spawning service all maps vehicles,guns,in game script menu for players ect
    By catmanbredrin in forum DayZ Selling / Trading / Buying
    Replies: 41
    Last Post: 01-06-2013, 06:18 PM
  3. HeavensArmy™ needs active players D:
    By koreankid919 in forum CrossFire Clan Recruitment & Advertising
    Replies: 0
    Last Post: 06-01-2010, 05:22 AM
  4. NEED SOME ACTIVE PLAYER!
    By edbyson in forum CrossFire Clan Recruitment & Advertising
    Replies: 10
    Last Post: 03-25-2010, 03:43 AM
  5. Southwind recruiting, clan emblem and active players.
    By zupp10 in forum Combat Arms Clan Recruitment & Advertising
    Replies: 2
    Last Post: 09-03-2009, 04:08 AM