16.04.2014, 16:54
i use dini , maybe example for cmd /heal and if player use that the ticket will be decrease 1 ticket
example command
that just for example
thanks before
example command
pawn Код:
CMD:heal(playerid,params[]) {
#pragma unused params
If(PlayerInfo[playerid][Ticket] == 1) {
SetPlayerHealth(playerid, 100);
PlayerInfo[playerid][Ticket] = -1; //this will be decrease 1 ticket when use this cmd
} else return SendClientMessage(playerid, -1,"You need 1 ticket to use this cmd");
return 1;
}
thanks before