Jump to content
  • 0

Resu kill abuse 2 tyms in certain maps


Question

12 answers to this question

Recommended Posts

  • 1
Posted


OnInit:

set .maplist$, "|map1|map2|map3|map4|";

end;

OnPCDieEvent:

if( !compare(.maplist$,"|"+strcharinfo(3)+"|") )

end; set(@life,@life+1); if( @life > 1 )

{ warp "SavePoint",0,0; set(@life,0); } end;

  • Upvote 1
Posted

More info please... I'm not sure what you mean because when you die twice in a pvp room it warps to back to you save anyways.

Posted

I have activated the option that when u die in pvp maps ull be warped at saved map but now i have activated pvp in all map so ill want to configure that into certain maps only by the way im using ea mod

Posted
OnInit:
	set .maplist$, "|map1|map2|map3|map4|";
	end;

OnPCDieEvent:
	if( !compare(.maplist$,"|"+strcharinfo(3)+"|") )
	end; set(@life,@life+1); if( @life > 1 )
	{ warp "SavePoint",0,0; set(@life,0); } end;

How can i put in this script because not working if ill make another script file

 

OnPCDieEvent:
getmapxy .@map$, .@x, .@y, 0;
for( set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1 ) {
if( .@map$ == .pvpmap$[.@i] ) {
if ( #CASHPOINTS <= 0 ) end;
set #CASHPOINTS,#CASHPOINTS-1;
dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points.";
}
}
end;

OnInit:
setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs";
setarray .announcements$[0],"was killed by","was violated by","was owned by";
end;
}
Posted

Try : 

OnPCDieEvent:
    getmapxy .@map$, .@x, .@y, 0;
    for( set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1 ) {
        if( .@map$ == .pvpmap$[.@i] ) {
            set @life, @life + 1;
            if ( @life > 1 ) {
                warp "SavePoint",0,0;
            }
            if ( #CASHPOINTS <= 0 ) end;
            set #CASHPOINTS,#CASHPOINTS-1;
            dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points.";
        }
    }
    end;

OnInit:
    setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs";
    setarray .announcements$[0],"was killed by","was violated by","was owned by";
    end;
}
Posted


OnPCDieEvent:

getmapxy .@map$, .@x, .@y, 0;

for(set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1) {

if(.@map$ == .pvpmap$[.@i]) {

set .@str$, "@life_" + .pvpmap$[.@i];

setd (.@str$, getd(.@str$) + 1);

if (getd(.@str$) > 1) {

warp "SavePoint",0,0;

}

if ( #CASHPOINTS <= 0 ) end;

set #CASHPOINTS,#CASHPOINTS-1;

dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points.";

}

}

end;

OnInit:

setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs";

setarray .announcements$[0],"was killed by","was violated by","was owned by";

end;

}

Posted

now i am confused with what exactly you want ....

1st you said ... when users died in pvp map...straight warp back to save point ....

 

now..

can be if he died twice autokick

isnt this is the original + default behavious of a pvp map where you died twice auto warp back to saved map ....

 

/hmm

Posted
OnInit:
	set .maplist$, "|map1|map2|map3|map4|";
	end;

OnPCDieEvent:
	if( !compare(.maplist$,"|"+strcharinfo(3)+"|") )
	end; set(@life,@life+1); if( @life > 1 )
	{ warp "SavePoint",0,0; set(@life,0); } end;

 

this will kick any player who kills 2 times in a row another same player right? i'm looking for this feature DD:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...