Two IDs in one function
Greetings.I have more of a question than needing help in certain code.The question is: How can I get two ids of two players in one function.Example: To make a duel/battle/fight/challenge come true I need two IDs, right? Uncle Google couldn't help me so far, so I guess you guys could help me.
|
Re: Two IDs in one function
You can add as many parameters as you want to your custom function.
|
Re: Two IDs in one function
As an example:
PHP Code:
P.S.: Ask Uncle Google if he knows about plugins who already do that. |
Re: Two IDs in one function
Create a variable of Partner of a player.
new Partner[33]; -------- Set Partner[id] to -1 if he has no partner ( no duel takes place ). -------- Set Partner[id] = target; Set Partner[target] = id; Do that if they have a duel. --------- If it's like a JailBreak Last Request where there is only 1 duel at the time, create two integers of Guard and Prisoner Do: Guard = ID of guard. Prisoner = ID of prisoner. |
Re: Two IDs in one function
Why -1? 0 works fine.
|
| All times are GMT -4. The time now is 18:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.