23.06.2018, 03:51
Here is some PHP code
When i change TogglePlayerSpectating from 1 to 0
i'm getting spawn option down to spawn in game. I think it's not the correct process. when i do this game running normally but no command are showing in server-log.txt like when we type /b or /help nothig showing in server-log.txt, i cant go admin duty and the server intro song coming continuously until the song ends and im not getting login message like if i was admin it should show adm:cmd kamal has logged in like that. I dont know what causing the problem
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
if(PlayerInfo[playerid][pKicked]) return 0;
if(IsPlayerNPC(playerid)) return 1;
if(!PlayerInfo[playerid][pLogged])
{
ClearChat(playerid);
TogglePlayerSpectating(playerid, 1);
SetPlayerColor(playerid, 0xFFFFFF00);
#if defined SERVER_INTRO
ShowMainMenuCamera(playerid, 1);
#else
SetTimerEx("ShowMainMenuCamera", 400, false, "i", playerid);
#endif
}
return 1;
}
PHP код:
TogglePlayerSpectating(playerid, 0);

