Need help.
#1

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.

Код:
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;
}
Reply


Messages In This Thread
Need help. - by edgargreat - 12.05.2013, 00:54
Re: Need help. - by Warbles - 12.05.2013, 01:03
Re: Need help. - by edgargreat - 12.05.2013, 01:07
Re: Need help. - by Warbles - 12.05.2013, 01:08
Re: Need help. - by Knappen - 12.05.2013, 01:12
Re: Need help. - by edgargreat - 12.05.2013, 01:12
Re: Need help. - by edgargreat - 12.05.2013, 01:15
Re: Need help. - by Warbles - 12.05.2013, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)