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