17.03.2011, 23:05
Hello,
I made a simple /contract system for hitmans using Dini.
I made a variable to all the players where the script can
see if the player is contracted or not. It's working good.
I want to make a command, something like /checkhits.
Only the hitmans can use this. I want it to loop through
all the players and check who is Contracted and how much.
All the players has got these variables:
--------------------------------------
PlayerInfo[playerid][pContracted]
PlayerInfo[playerid][pContractPrice]
--------------------------------------
So how can I make a command that it loops through all the
players and find out who is contracted or not?
Anyone any tips?
Thanks!
I made a simple /contract system for hitmans using Dini.
I made a variable to all the players where the script can
see if the player is contracted or not. It's working good.
I want to make a command, something like /checkhits.
Only the hitmans can use this. I want it to loop through
all the players and check who is Contracted and how much.
All the players has got these variables:
--------------------------------------
PlayerInfo[playerid][pContracted]
PlayerInfo[playerid][pContractPrice]
--------------------------------------
So how can I make a command that it loops through all the
players and find out who is contracted or not?
Anyone any tips?
Thanks!