Quote:
Originally Posted by jkool666
You can't kick the players that already have it, thats nearly impossible. For me to have an event with 20-30 players in it, I would need to:
1. Find everyone who already has the weapon (how would I do that? Ask and people would lie?)
2. At the start, type /kick <acc name> about 20 times, which would take about 1-2 mins and I wouldn't even be able to watch to make sure people are following rules.
But I do agree Typhoon, it is a bad rule.
|
Or you can have it automatically do so via script
PHP Code:
//This would go in the dropship
function onActionServerSide()
{
if (params[0] == "sweap") {
serverr.sweap = tokens[1];
player.chat = "Event weapon set to: " @ serverr.sweap;
for (pl: allplayers) {
if (pl.guild != "Events Team") {
if (findweapon(serverr.sweap) != NULL) {
pl.chat = "You already have the event prize:" @ serverr.sweap;
setlevel2("blah.nw",30,30);
}
}
}
}
}
//#CLIENTSIDE
function onPlayerChats()
{
if (player.guild == "Events Team") {
if (player.chat.starts("/setweapon")) {
tokens = player.chat.tokenize();
if (tokens[1] != serverr.sweap) {
triggerserver("gui",name,"sweap",tokens[1]);
} else player.chat = "Event weapon is already set to " @ serverr.sweap;
}
}
}
function onPlayerEnters()
{
if (serverr.sweap != NULL) {
if (findweapon(serverr.sweap) != NULL) {
player.chat = "You already have the event prize:" @ serverr.sweap;
setlevel2("blah.nw",30,30);
}
}
}
And...
PHP Code:
//This would go in the map itself
function onActionServerSide()
{
if (params[0] == "rweap") serverr.sweap = NULL;
}
//#CLIENTSIDE
function onPlayerEnters()
{
if (serverr.sweap != NULL) {
if (findweapon(serverr.sweap) != NULL) {
player.chat = "You already have the event prize:" @ serverr.sweap;
setlevel2("blah.nw",30,30);
}
triggerserver("gui",name,"rweap");
}
}
Or something like that....