16.01.2018, 19:40
Your code didn't work out for me, Anyways, I managed to get closer to fixing this, The only problem is even when I am not in the lobby I can still use back
Код:
CMD:back(playerid,params[]) { new Float:IsPlayerInInterior; if(IsPlayerInInterior == 10) { SendClientMessage(playerid, -1, "{FF0000}(INFO) You are not in lobby"); } else { SendClientMessage(playerid, -1, "{EFB509}(INFO) Welcome back! You can start playing now."); SpawnPlayer(playerid); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerHealth(playerid,100); } return 1; }