Help with a Interior-Type problem.
#1

Right, so i can teleport to interiors.. a.k.a.. a stunt track arena, if you type /gethere "playerid" they will see the int.. but if they type /joinevent.. they won't.. and will just fall..


my /joinevent CMD:

Код:
	if(strcmp(cmd, "/startevent", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (PlayerInfo[playerid][pAdmin] >= 1 && (!EventStarted))
			{
			  GetPlayerName(playerid, sendername, sizeof(sendername));
				EventStarted = 1;
				GetPlayerPos(playerid,ex,ey,ez);
	      format(string, sizeof(string), "NOTICE: Administrator %s Has started an Event (/joinevent)", sendername);
			  OOCNews(TEAM_ORANGE_COLOR,string);
			}
			else if (PlayerInfo[playerid][pAdmin] >= 1 && (EventStarted))
			{
				EventStarted = 0;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREEN, "  you are not authorized to use that command!");
			}
		}
		return 1;
	}
	if(strcmp(cmd, "/joinevent", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(EventStarted == 0)
      {
			  SendClientMessage(playerid, TEAM_ORANGE_COLOR, "An Event has not Started yet!");
        return 1;
      }
      SetPlayerPos(playerid, ex, ey, ez); // Warp the player
	  	  SendClientMessage(playerid, COLOR_LIGHTRED, "Follow instructions by the Administrator who started the event.");
		}//not connected
		return 1;
	}
Код:
Anyone help me, please? ;)
Reply
#2

Try adding:
pawn Код:
SetPlayerInteror(playerid, interior ID);
Replace 'interior ID' with the interior ID what you want to use.
You can get the interior IDs by going ingame and type /interior.
Reply
#3

pawn Код:
SetPlayerPos(playerid, ex, ey, ez); // Warp the player
Where do you warp him to?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)