How to find added interior In game? - 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: How to find added interior In game? (
/showthread.php?tid=412285)
How to find added interior In game? -
Moneymachine - 01.02.2013
https://sampforum.blast.hk/showthread.php?tid=190183 I just added that to my Gamemode and started the server how can i find it? I dont have the latest streamer..I dont know how to install it proberly..So tell me how to find the interior ingame? Is it /gotoint? if it is how i find the code?
Re: How to find added interior In game? - Patrick - 01.02.2013
i just got 1 coords from 1 of the object try to add this command
so you can tp there use /airport to tp there
pawn Код:
if (strcmp("/airport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1887.64404297,51.92456818,1054.75976562);
SetPlayerInterior(playerid, 8);
return 1;
}
PS: if you are using
CreateObject you dont need streamer you only need to use streamer if you use
CreateDynamicObject
Re: How to find added interior In game? -
Moneymachine - 01.02.2013
Pawno says that command to error.. "Invalid function or declaration"
Re: How to find added interior In game? - Patrick - 01.02.2013
try again, i edited my comment
Re: How to find added interior In game? -
Moneymachine - 01.02.2013
stock FindFreeAttachedObjectSlot(playerid)
{
new index;
while (index < MAX_PLAYER_ATTACHED_OBJECTS && IsPlayerAttachedObjectSlotUsed(playerid, index))
{
index++;
}
if (index == MAX_PLAYER_ATTACHED_OBJECTS) return -1;
return index;
}
if (strcmp("/airport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1887.64404297,51.92456818,1054.75976562);
SetPlayerInterior(playerid,
![Cool](images/smilies/cool.gif)
;
return 1;
}
Am i doing something wrong? Im beginner scripter so :P