How to make something like this :?
#1

Hello guys..
Iam thinking to make some command for my RP server like /getcash but player can use it only 1 time, but i dont have idea how to do it.. anyone knows?
Thank ya!
Reply
#2

Make a variable
E.g
pawn Код:
new CashGiven[MAX_PLAYERS]=0;

//then on your cmd
{
if(CashGiven[playerid] == 1) return SendClientMessage(playerid,-1,"you can't use this command again!");
CashGiven[playerid]=1;
}
You can save that so next time you would know if the player used it or not
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)