Код:
if(response)
{
new buf[129];
WP_Hash(buf, sizeof(buf), inputtext);
if(!strcmp(buf, cInfo[playerid][cPassword], false))
{
INI_ParseFile(GetCharacterPath(playerid), "LoadCharacter_%s", .bExtra = true, .extra = playerid);
SetSpawnInfo(playerid, 0, 1, 1743.0426, -1862.5818, 13.5761, 359.2747, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, DIALOG_LOGIN_CAPTION, DIALOG_LOGIN_INFO, "Login", "Cancel");
}
}
else
{
Kick(playerid);
}
The only way to prevent this is to make a login timer and prevent player from spawning without logging in