16.11.2014, 00:38
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; } |
P.S I am not a scripter. Just trying to help.