Activating a script on a player

Posts 1–5 of 5 · Page 1 of 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
I think that's in rustlers im not to sure though because I've personally never used it.
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";
Quote Originally Posted by Leidan117 View Post
this should be what your looking for
That looks like it should do it, thanks!
anytime /tooshort
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us