Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

/back command

$
0
0
I've made a /back command I have an issue with it

Code:

CMD:back(playerid,params[])
{
    if(!IsPlayerInInterior(playerid)) return SendClientMessage(playerid, -1, "{FF0000}(INFO) You are not in lobby");
    else
  {
        if(IsPlayerInInterior(playerid)) return SendClientMessage(playerid, -1, "{EFB509}(INFO) Welcome back! You can start playing now.");
        SpawnPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
  }
  return 1;
}

When I do /back it does not teleport me back to a random spawn

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>