#1

I want to make a time like a rest for a command, example:
PHP код:
CMD:fish(playeridparams[])
{
    if(
PlayerInfo[playerid][pFishes] > 5)
    {
        
SendClientMessageEx(playeridCOLOR_GREY"You've caught enough fish for now - take a break.");
        return 
1;
    }
    if(
Fishes[playerid][pWeight1] > && Fishes[playerid][pWeight2] > && Fishes[playerid][pWeight3] > && Fishes[playerid][pWeight4] > && Fishes[playerid][pWeight5] > 0)
    {
        
SendClientMessageEx(playeridCOLOR_GREY"You can't carry more than five fish at a time - sell or release them first.");
        return 
1;
    } 
and continues... how to add a time, like you can use the command once every 30 seconds?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)