SA-MP Forums Archive
Help Problem with Interior! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Problem with Interior! (/showthread.php?tid=493073)



Help Problem with Interior! - Akcent_Voltaj - 06.02.2014

hi i have a problem..if i put /tpevent out side in Int: 0 and player is in house he wont get interior 0 and virtual world 0 .. he gets house hInt and hWorld..





fixed


Re: Help Problem with Interior! - Hashski - 06.02.2014

Why are checking their virtual world and interior and sending them back to it?

Try this.

Код:
if(strcmp(cmd, "/join", true) == 0)
{
	if(IsPlayerConnected(playerid))
	{
		if(EventStarted == 0) return SendClientMessage(playerid, COLOR_RED, "No event in this moment");
		
  		SetPlayerPos(playerid,ex,ey,ez);

  		SetPlayerVirtualWorld(playerid, 0);
  		SetPlayerInterior(playerid, 0);
		PlayerInfo[playerid][pVirWorld] = 0;
  		PlayerInfo[playerid][pInt] = 0;
  		printf("/tpevent INT: %d TPEVENT VW: %d",interior,vw);
  }
  return 1;
}



Re: Help Problem with Interior! - Akcent_Voltaj - 06.02.2014

fixed


Re: Help Problem with Interior! - Akcent_Voltaj - 06.02.2014

bump