31.10.2015, 14:31
I want to make a jail/unjail command with this. I need some help i want a jail system with unjail timer so that when timer stops the players gets out of the jail. and if a player disconnects its jail time remains same when he connects back.. i hope you get my point. pls help.
COMMAND:jail(playerid,cmdtext)
{
if(PlayerInfo[playerid][pFaction] == 0 || PlayerInfo[playerid][pFaction] == 2)
{
return SendClientMessage(playerid,0xf81414ff,"Your Rank Is Too Low To Use This Command");
}
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFacrank] >= 0)
{
COMMAND:jail(playerid,cmdtext)
{
if(PlayerInfo[playerid][pFaction] == 0 || PlayerInfo[playerid][pFaction] == 2)
{
return SendClientMessage(playerid,0xf81414ff,"Your Rank Is Too Low To Use This Command");
}
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFacrank] >= 0)
{