26.06.2015, 12:29
If you are checking if the person is masked.
And you have a method of storing each mask per player.
Simply make a stock function...
example
/pay 123_123 1
Once typed.
IT would go to the function...
.
IsMasked(playerid) {
Make a foreach statement..
Loop through all connected players
if the player is connected {
Do they have a mask on
If they have a mask on {
Is there mask ID == to the input ID of /pay
if it is == to the input ID of the mask
SIMPLY
return i
Once returned i;
It will return back to the /pay command
i == target
And you have a method of storing each mask per player.
Simply make a stock function...
example
/pay 123_123 1
Once typed.
IT would go to the function...
.
IsMasked(playerid) {
Make a foreach statement..
Loop through all connected players
if the player is connected {
Do they have a mask on
If they have a mask on {
Is there mask ID == to the input ID of /pay
if it is == to the input ID of the mask
SIMPLY
return i
Once returned i;
It will return back to the /pay command
i == target

