Ok. The forum I started was for this script.
PHP Code:
function onCreated() {
this.setshape(1, 32, 32);
}
function onActionSetMatchServer(match, vplayer, splayer) {
for (temp.i = 0; temp.i <= 10; temp.i++) {
if (match == i) makevar("serverr.sdematch" @ i) = {vplayer, splayer};
}
}
function onActionWarpMatchServer() {
setlevel2("testtourny2.nw",30,30);
}
function onActionWarpMatchOutServer() {
setlevel2("testtourny.nw",1,1);
}
//#CLIENTSIDE
function onCreated() {
this.setshape(1, 32, 32);
if (player.dies){
if (player.account == serverr.sdematch1[0] || player.account == serverr.sdematch1[1]){
triggeraction(this.x + 0.5, this.y + 0.5, "WarpMatchOutServer","");
}
}
}
function onPlayerTouchsMe()
{
say2("Match1: " @ serverr.sdematch1[0] @ " vs. " @ serverr.sdematch1[1] @ "
Match2: " @ serverr.sdematch2[0] @ " vs. " @ serverr.sdematch2[1] @ "
Match3: " @ serverr.sdematch3[0] @ " vs. " @ serverr.sdematch3[1] @ "
Match4: " @ serverr.sdematch4[0] @ " vs. " @ serverr.sdematch4[1] @ "
Match5: " @ serverr.sdematch5[0] @ " vs. " @ serverr.sdematch5[1] @ "
Match6: " @ serverr.sdematch6[0] @ " vs. " @ serverr.sdematch6[1] @ "
Match7: " @ serverr.sdematch7[0] @ " vs. " @ serverr.sdematch7[1] @ "
Match8: " @ serverr.sdematch8[0] @ " vs. " @ serverr.sdematch8[1] @ "
Match9: " @ serverr.sdematch9[0] @ " vs. " @ serverr.sdematch9[1] @ "
Match10: " @ serverr.sdematch10[0] @ " vs. " @ serverr.sdematch10[1] @"");
}
function onPlayerChats(){
if (player.account in serverr.sdeaccess)
{
if (player.chat.starts("setmatch")) {
temp.match = player.chat.tokenize()[1];
temp.vplayer = player.chat.tokenize()[2];
temp.splayer = player.chat.tokenize()[3];
triggeraction(this.x + 0.5, this.y + 0.5, "SetMatchServer", temp.match, temp.vplayer,temp.splayer);
}
if (player.chat.starts("startmatches")){
for (temp.i = 0; temp.i <= 10; temp.i++) {
if (i == 1){
if (i != ""){
if (player.account == serverr.sdematch1[0] || player.account == serverr.sdematch1[1]){
triggeraction(this.x + 0.5, this.y + 0.5, "WarpMatchServer","");
}
}
}
}
}
}
}
Now I'm lost, again. Im trying to set it where you can say "startmatches", and it will go through all the set matches, warping the people in for the first one, warp them out when they die, which will cause the 2nd set of matches to start, and warp them in, ect so on and so on.
Im just lost. Don't know where to go next, at all. help