Errorr -.- =>
#2

Solution;


Код:
dcmd_jail (playerid, params[]) 
{ 
    new giveid, time, str[128], jailtimer; 
    if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You can't use this cmd."); 
    if (sscanf(params, "ui", giveid, time)) return SendClientMessage(playerid, -1, "USAGE: /jail [ID] [TimeInMilliSeconds]"); 
    if (giveid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid player ID!"); 
    CagePlayer(giveid); 
    format(str, sizeof(str), "You are now jailed for %i milliseconds!", time); 
    SendClientMessage(giveid, -1, str); 
    jailtimer = SetTimerEx("UnJailPlayer", time, false, "i", giveid); 
    return 1; 
}
Reply


Messages In This Thread
Errorr -.- => - by gekas - 18.05.2014, 09:48
Re: Errorr -.- => - by Ciandlah - 18.05.2014, 09:50
Re: stupid title -.- => - by Vince - 18.05.2014, 09:54
Re: Errorr -.- => - by gekas - 18.05.2014, 09:54
Re: Errorr -.- => - by Ciandlah - 18.05.2014, 09:57
Re: Errorr -.- => - by Threshold - 18.05.2014, 10:37
Re: Errorr -.- => - by SyntaxQ - 18.05.2014, 10:54
Re: Errorr -.- => - by GeekSiMo - 18.05.2014, 10:56

Forum Jump:


Users browsing this thread: 3 Guest(s)