ResetStats(playerid);//Setting variables to 0. ClearScreen(playerid);//Clearing the users screen from SA-MP messages. ShowScriptStats(playerid);//Showing the script information. new first[MAX_PLAYER_NAME], last[MAX_PLAYER_NAME]; if(RPName(PlayerName(playerid),first,last)) { SendClientMessage(playerid,COLOR_YELLOW,"_________ ___________________________________________"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2," Immigration: "); new sendername[MAX_PLAYER_NAME]; new accstring[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(accstring, sizeof(accstring), "CRP_Scriptfiles/Accounts/%s.ini", sendername); new File: hFile = fopen(accstring, io_read); if (hFile) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You are already a citizen, type your password below."); fclose(hFile); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You are not a citizen, type your desired password to register."); } SendClientMessage(playerid,COLOR_YELLOW,"_________ ___________________________________________"); } else { KickPlayer(playerid,"System","Invalid Name, Correct Format: Firstname_lastname."); } return 1; |
ResetStats(playerid);//Setting variables to 0.
ClearScreen(playerid);//Clearing the users screen from SA-MP messages.
ShowScriptStats(playerid);//Showing the script information.
SendClientMessage(playerid,COLOR_YELLOW,"____________________________________________________");
SendClientMessage(playerid,COLOR_LIGHTYELLOW2," Immigration: ");
new sendername[MAX_PLAYER_NAME];
new accstring[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(accstring, sizeof(accstring), "CRP_Scriptfiles/Accounts/%s.ini", sendername);
new File: hFile = fopen(accstring, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You are already a citizen, type your password below.");
fclose(hFile);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You are not a citizen, type your desired password to register.");
}
SendClientMessage(playerid,COLOR_YELLOW,"____________________________________________________");
return 1;