12.05.2013, 00:54
Hey guys, i need help. I make a /getrefund command and then when they type the /getrefund they getting the refund, but when they type many times the /getrefund they getting it many times. help please, that they can get it 1 time only.
Here's the line.
Here's the line.
Код:
CMD:getrefund(playerid, params[]) { if(PlayerInfo[playerid][pConnectTime] < 1) { SendClientMessage(playerid, COLOR_ORANGE, "You can't get your refunds, you need to have a 3 hours playing time!"); return 1; } if(PlayerInfo[playerid][pConnectTime]>= 3) { PlayerInfo[playerid][pCash] = 10000000; PlayerInfo[playerid][pLevel] = 4; PlayerInfo[playerid][pDonator] = 2; SendClientMessage(playerid, COLOR_ORANGE, "Thanks for getting your refund! Enjoy!"); } return 1; }