13.03.2018, 18:00
Did you tried like this?
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 1);
if (IsPlayerNPC(playerid)) return 1;
if (isconnected[playerid] == 0)
{
isconnected[playerid] = 1;
SetPlayerColor(playerid, COLOR_PLAYER);
SetPlayerVirtualWorld(playerid, 1);