Interior Bug - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior Bug (
/showthread.php?tid=221728)
Interior Bug -
Rokzlive - 06.02.2011
I added a pickup to send a player to Barbara room 322.197998,302.497985,999.148437 but it sets my position to above the ocean and falling.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[200], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s picked up pickup id %d", name, pickupid);
printf(string);
if(pickupid == BlackMarket)
{
if(team[playerid]==0)
{
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
SendClientMessage(playerid,COLORYELLOW,"You entered the Black Market!");
}
if(team[playerid]==1)
{
SendClientMessage(playerid,COLORRED,"The Black Market security guards refuse to let you in!");
}
}
return 1;
}
Re: Interior Bug -
MMiz - 06.02.2011
You need to set the player's interior if thats the problem, let me look for the correct interior and get you it
Edit:
Interior ID: 5 322.197998, 302.497985, 999.148437
Just add this line before SetPlayerPos
Код:
SetPlayerInterior(playerid, 5);
And it should work fine, if not tell me.
Re: Interior Bug -
Rokzlive - 06.02.2011
So i have to change their interior then tele them? And change it back when they leave? 1. How do i do that and 2. what interiors do i do?
Re: Interior Bug -
MMiz - 06.02.2011
Also add
Код:
SetPlayerInterior(playerid, 0);
Under your OnPlayerDeath callback