Hey im writing a script which makes it so when a player is killed by a certain player they are given a status, when they then kill a player this player is given a status. And then when all players have that status it is reset and none of the player have that status any more (exept 1 bot which will give them the status).
I was thinking since I dont think I can anyhow tag the status onto an ID, to use arrays and names. So I thought setup an array and when a player is killed check the array if the killer has the status, (eg the killers name is in the array) if so add the victims name to the array. And then when everyones name is in the array to somehow wipe the array (exept for the bot).
Hope this makes sence. As i have extremly limited experience with arrays I was hoping someone could show me an example script of how I may do this. How to write name into arrays without overwriting others and then how to clear it with another toggle.
Cheers
Date Posted: June 16, 2007, 03:32:30 AM
For it to make more sence you could think of it as a Zombie scipt or Flame Running (im making a similar themed game style). When a Zombie kills a player they become a Zombie. When the whole server are Zombies (eg no players left) round restarts and only the bot is left as a Zombie.