Help with this command please?
#2

You need to create a variable like

pawn Код:
new LoanBy[MAX_PLAYERS];
Then when someone executes /loan, Make LoanBy[target] = playerid.
In the /take command, create a loan parameter then check if LoanBy[playerid] is an actual player.

To make it more secure you could also add a LoanTo[MAX_PLAYERS], then when someone offers a Loan, make the LoanTo of that player to the person he offered a loan to. Then check whether the Loan was issued by a player to a player by using LoanTo[LoanBy[playerid]] = playerid in the /loan take command.
Reply


Messages In This Thread
Help with this command please? - by rangerxxll - 18.10.2011, 04:51
Re: Help with this command please? - by Ensconce - 18.10.2011, 04:58

Forum Jump:


Users browsing this thread: 2 Guest(s)