24.01.2012, 20:29
pawn Код:
if(sscanf(params, "uDDs[128]", giveplayerid,hours,days, reason)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /tban [player id] [hours] [days] [reason]");
if(sscanf(params, "uDDs[128]", giveplayerid,hours,days, reason)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /tban [player id] [hours] [days] [reason]");
if(sscanf(params, "uD(0)D(0)s[128]", giveplayerid,hours,days, reason)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /tban [player id] [hours] [days] [reason]");
if(sscanf(params, "uD(0)D(0)s[128]", user, date1, date2, string))
{
if(isnull(date1) { date1 = ..; }
else if(isnull(date2) { date2 = ..; }
}