11.10.2012, 18:43
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
Can anyone help me make that command /adjail <ID> <Time> <Reason>
+ Rep Who Can help Me
Код:
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);
+ Rep Who Can help Me


