SA-MP Forums Archive
LSPD Teleports, need some help - 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: LSPD Teleports, need some help (/showthread.php?tid=110036)



LSPD Teleports, need some help - Guso - 24.11.2009

// Edit
Okay, i made it myself nearly.. I have this problem when I'm entering the police station i get teleported up in the air and then i fall down..

if(!strcmp(cmdtext, "/pdenter", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if(PlayerToPoint(1.0,playerid, 1568.6848,-1690.3054,5.8906))
{
SetPlayerPos(playerid,242.7636,66.3462,1003.6406);
GameTextForPlayer(playerid, "~w~Police Department",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}
}
return 1;
}

What's wrong?


Re: LSPD Teleports, need some help - [DDC]Delight - 24.11.2009

I think your interior ID is wrong.

ID for SF PD is 10 try SetPlayerInterior(playerid, 10);


Re: LSPD Teleports, need some help - Guso - 24.11.2009

Quote:
Originally Posted by TisjuBoY
I think your interior ID is wrong.

ID for SF PD is 10 try SetPlayerInterior(playerid, 10);
That was right, but i can't go on duty and such i think its another world :/
Thats the only problem left, i cannot exit the building from the normal exit and i can't go on duty and i can't /arrest
Any ideas?
Nvm i have fixed it, it was the virtual world that was bugged.
Thanks, bb


Re: LSPD Teleports, need some help - [DDC]Delight - 24.11.2009

yw..