SA-MP Forums Archive
String with time? - 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: String with time? (/showthread.php?tid=372415)



String with time? - Gooday - 26.08.2012

Hey guys how could I do /jail ID minutes? How could I create a %d or %s for the minutes?


Re: String with time? - Universal - 26.08.2012

If I got you right.

pawn Код:
COMMAND:jail(playerid, params[])
{
   new
      player,
      minutes;
   if (sscanf(params, "dd", player, minutes))
   {
      SendClientMessage(playerid, -1, "Usage: /jail [player] [minutes]");
      return 1;
   }
   new
      string[50];
   format(string, sizeof string, "You have jailed player ID %d for %d minutes.", player, minutes);
   SendClientMessage(playerid, -1, string);
   return 1;
}



Re: String with time? - Gooday - 26.08.2012

What about the unjail?