Ask about Cmd with quota
#3

i use dini , maybe example for cmd /heal and if player use that the ticket will be decrease 1 ticket
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;
}
that just for example
thanks before
Reply


Messages In This Thread
Ask about Cmd with quota - by [IND]Crazy - 16.04.2014, 16:37
Re: Ask about Cmd with quota - by Firewire - 16.04.2014, 16:47
Re: Ask about Cmd with quota - by [IND]Crazy - 16.04.2014, 16:54
Re: Ask about Cmd with quota - by Firewire - 16.04.2014, 17:06
Re: Ask about Cmd with quota - by Mauzen - 16.04.2014, 17:17
Re: Ask about Cmd with quota - by [IND]Crazy - 17.04.2014, 05:55

Forum Jump:


Users browsing this thread: 1 Guest(s)