16.04.2017, 09:21
(
Последний раз редактировалось iggy1; 16.04.2017 в 09:27.
Причина: show dialog again if not logged
)
Not coded for samp in a long time i might be wrong, but if IIRC you need to put the player into spectate when they connect, and return 0 in OnPlayerRequestClass if they are not logged.
Код:
public OnPlayerConnect(playerid) { TogglePlayerSpectating(playerid, true); //show dialog return 1; } public OnPlayerRequestClass(playerid, classid) { if( !PlayerIsLoggedVarGoesHere )//set this var to true when they enter correct password (OnDialogResponse) { //show dialog again return 0; } //player is logged TogglePlayerSpectating(playerid, false); return 1; }