08.06.2014, 18:52
Hello everybody I am a new Scripter and i need the help of all you.
This is the accountdisable command
And now i need to make it with day's.
I want to disable the account with some day's.
Example to disable account for 5 days in the real day's}|
Help mee and i will rep you :P
This is the accountdisable command
PHP код:
dcmd_accountdisable(playerid, params[])
{
new TargetID,Reason[64];
if(pInfo[playerid][Adminlevel] < 7) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
if(sscanf(params, "us", TargetID, Reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /accountdisable [id] [Reason]");
if(TargetID == INVALID_PLAYER_ID || !IsPlayerConnected(TargetID )) return SendClientMessage(playerid, COLOR_RED, "* Player Is Not Connected.");
if(pInfo[TargetID][Adminlevel] > 0) return SendClientMessage(playerid, -1, "You cant disable admin.");
else
{
pInfo[TargetID][Adisable] =1;
new str[128],str1[128];
new targetname[MAX_PLAYER_NAME];
GetPlayerName(TargetID,targetname,24);
format(str,sizeof(str),"%s (%d) Has Been Disabled By An Admin. Reason: %s", targetname, TargetID, Reason);
SendClientMessageToAll(COLOR_HOTPINK, str);
format(str1,sizeof(str1),"**KICK: %s (%d) (ACCOUNT DISABLED) Account Disabled", targetname, TargetID);
SendClientMessageToAll(COLOR_HOTPINK, str1);
KickWithMessage(TargetID,"You Have Been Removed From The Server.");
print(str);
print(str1);
}
return 1;
}
I want to disable the account with some day's.
Example to disable account for 5 days in the real day's}|
Help mee and i will rep you :P