Inactive time
#2

Quote:

if(strcmp(cmd, "/lastlogin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new string2[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lastlogin [full name(case sensative)]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 5)
{
format(string, sizeof(string), "%s.ini",tmp);
if(dini_Exists(string))
{
string2 = dini_Get(string, "LastLogin");
format(string, sizeof(string), "%s's last login: %s", tmp,string2);
SendClientMessage(playerid,COLOR_WHITE, string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "That player does not exist!");
}
}
}
return 1;
}

Does this help?
P.S I am not a scripter. Just trying to help.
Reply


Messages In This Thread
Removed - by MasonSFW - 16.11.2014, 00:19
Re: Inactive time - by ZenBish - 16.11.2014, 00:38
Re: Inactive time - by Abagail - 16.11.2014, 00:47
Re: Inactive time - by Threshold - 16.11.2014, 01:04
Re: Inactive time - by MasonSFW - 16.11.2014, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)