Code:
CMD:aleave(playerid, params[])
{
if(InArena1[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, -1, "{EFB509}(INFO) You have left arena1!");
SpawnPlayer(playerid);
}
else
{
SendClientMessage(playerid, -1, "{c3c3c3}(INFO) You're not in the arena!");
}
return 1;
}
When I use that command, Instead of spawning, It spawns me at the sky somewhere far, Why so?