15.10.2011, 08:41
I have Godfather Mod and it doesent have login and register box, so can somebody post this code/tutorial for this (Godfather GM)... Pls
if (strcmp(cmd, "/login", true) ==0 || strcmp(cmd, "/l", true) ==0) { if(IsPlayerConnected(playerid)) { new tmppass[64]; if(gPlayerLogged[playerid] == 1) { SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: You are already logged in."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "USAGE: (/l)ogin [password]"); return 1; } strmid(tmppass, tmp, 0, strlen(cmdtext), 255); //Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } return 1; }