I'm working on a special PvP Script where a Player can obtain points only if the opponent has the same variable but I couldn't find anything accurate so far.
I was wondering if you could give me a hand on this:
OnPCKillEvent:
if ( killedrid != getcharid(3) && EnableGod == 1 ) {
set GodKills, GodKills+1;
}
end;
It seems that it would just recognize my variable (as the Killer) but not for the opponent. If I set my variable 0, nothing would just happen. If I have the variable 1 I would get the points. But if the opponent has the variable 0 it would just give me the points anyway.
Is there any special script to check the other player's variable?
Question
Strand
Hello community,
I'm working on a special PvP Script where a Player can obtain points only if the opponent has the same variable but I couldn't find anything accurate so far.
I was wondering if you could give me a hand on this:
OnPCKillEvent: if ( killedrid != getcharid(3) && EnableGod == 1 ) { set GodKills, GodKills+1; } end;
It seems that it would just recognize my variable (as the Killer) but not for the opponent. If I set my variable 0, nothing would just happen. If I have the variable 1 I would get the points. But if the opponent has the variable 0 it would just give me the points anyway.
Is there any special script to check the other player's variable?
Thank you in advance.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.