Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=598986)
Help -
Brys - 19.01.2016
I want to make a time like a rest for a command, example:
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;
}
and continues... how to add a time, like you can use the command once every 30 seconds?