22.11.2018, 19:35
PHP код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
if(_:playertextid != INVALID_TEXT_DRAW) {
if(playertextid == Textdraw2[playerid]) {
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,sizeof(loginname));
GetPlayerName(playerid, plname, sizeof(plname));
format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
if(DOF2_FileExists(gstring)) {
// SEU SISTEMA DE LOGIN
}
else {
ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк nгo tem uma conta!", "Ok", "");
}
return 1;
}
if(playertextid == Textdraw4[playerid]) {
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
if(DOF2_FileExists(gstring)) {
ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк tem uma conta, logue-se!", "Ok", "");
}
else {
// SEU SISTEMA DE LOGIN AQUI
}
return 1;
}
if(playertextid == Textdraw4[playerid]) {
SendClientMessage(playerid, 0xFFFFFFAA, "Vocк foi kickado por nгo se registrar/logar!");
Kick(playerid);
}
return 1;
}
return 1;
}