adjail command + Rep
#1

Hi Guys can anyone help me with my problem? i want to use this command because i have cnr server.. i want this command to have with reason i tried to figure out but its an error

Код:
dcmd_adjail(playerid,params[])
{
	new string[128];
	new ID;
	new cmdtime;
	if(sscanf(params, "ui", ID, cmdtime))
	{
	    SendClientMessage(playerid,COLOR_ERROR,"AeroBot: /adjail (Player Name/ID) (Seconds)");
	    return 1;
	}
	if(!IsPlayerConnected(ID))
	{
	    format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot jail them.");
	    SendClientMessage(playerid,COLOR_ERROR,string);
	    return 1;
	}
	if(IsSpawned[ID] != 1)
	{
	    format(string,sizeof(string),"%s(%d) is not spawned. You cannot jail them.");
	    SendClientMessage(playerid,COLOR_ERROR,string);
	    return 1;
	}
	format(string,sizeof(string),"[ADMIN] Administrator has jailed %s(%d) to San Fierro Prison for %d seconds.",PlayerName(ID),ID,cmdtime);
	SendClientMessageToAll(COLOR_ADMIN,string);
  	format(string,sizeof(string),"9[ADMIN] Administrator has jailed %s(%d) to San Fierro Prison for %d seconds.",PlayerName(ID),ID,cmdtime);
	IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
Can anyone help me make that command /adjail <ID> <Time> <Reason>

+ Rep Who Can help Me
Reply


Messages In This Thread
adjail command + Rep - by Patrick - 11.10.2012, 18:43
Re: adjail command + Rep - by RedJohn - 11.10.2012, 19:40
Re: adjail command + Rep - by Patrick - 11.10.2012, 19:43
Re: adjail command + Rep - by RedJohn - 11.10.2012, 20:05
Re: adjail command + Rep - by Patrick - 11.10.2012, 20:11
Re: adjail command + Rep - by gtakillerIV - 11.10.2012, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)