76
Add-Ons / Re: Slayer | Nothing to put here...
« on: December 22, 2017, 05:29:08 PM »aww i completely forgot about the christmas message again this year:)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
aww i completely forgot about the christmas message again this year:)
best innovation skateboard
Oh can i replicate the first option with Life tickets?
I do not
Do you have a copy of it as an unzipped folder? If so delete that.
any idea on how to make a koth mode
Will there ever be a cops and robbers gamemode?
I didn't like that the minigame > win event didn't allow multiple teams to win. So I fixed that.Code: [Select]function MiniGameSO::Win(%this, %mode, %flag, %client)
{
if(isObject(%client) && getMinigameFromObject(%client) != %this)
return;
if(!isSlayerMinigame(%this))
return;
switch(%mode)
{
case 0: //TRIGGERPLAYER
if(isObject(%client))
%this.endRound(%client);
case 1: //TRIGGERTEAM
if(isObject(%client))
{
%team = %client.getTeam();
if(isObject(%team))
%this.endRound(%team);
}
case 2: //CUSTOMPLAYER
%cl = findClientByName(%flag);
if(isObject(%cl))
%this.endRound(%cl);
case 3: //CUSTOMTEAM
%flag = StrReplace(%flag,",","\t");
%count = getFieldCount(%flag);
%team = %this.Teams.getTeamFromName(getField(%flag,0));
for(%x=1;%x<%count;%x++)
%team = %team TAB %this.Teams.getTeamFromName(getField(%flag,%x));
if(isObject(getField(%team,0)))
%this.endRound(%team);
case 4: //CUSTOMSTRING
%this.endRound("CUSTOM" TAB %flag);
case 5: //NONE
%this.endRound();
}
}
Not sure why, but when I create a new minigame or reset the current one, I get extreme lag for the first like 2-3 seconds - Nothing major, just sorta wondering why this happens