SA-MP Forums Archive
Interior ID's - 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 ID's (/showthread.php?tid=274510)



Interior ID's - iiKyle - 06.08.2011

Hey SA-MP.


Now... When im in a Checkpoint to do a /Robbery thats in an Interior.
Can i Just Have The Coords, or do i Have to Know the Interior ID Aswell, Cause, i just Used an Interior Dialog via Garsino, and just used '/SAVE CP_NEW_ROBBERY'.

So.....?

I'm a Very Bad Explainer if People dont get me, please post and i'll try to explain better.


cheers iikyle


NOTICE : Sorry bout the Capitals :3 Bad Habbit, Looks Shithouse, i Know.


Re: Interior ID's - WoodPecker - 06.08.2011

Can you tell me the errors you are getting, or tell me whats wrong with this one.


Re: Interior ID's - iiKyle - 06.08.2011

No..


I Wan't to Know.

Ok Here we Go.

Can i Just Grab the Coords in a Interior, so like X,Y,Z And i'll Be in that Interior or do i have to Do.

Like. X,Y,Z,INTERIOR ID


Re: Interior ID's - WoodPecker - 06.08.2011

You can use this one:
PHP код:
if(strcmp(cmd"/gotopos"true) == 0)
    {
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
         {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
int_id;
        
int_id strval(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_x;
        
int_x floatstr(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_y;
        
int_y floatstr(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_z;
        
int_z floatstr(tmp);
        
format(stringsizeof(string), "You have been teleported to pos: %d, x=%1.5f, y%=1.5f, z=%1.5f"int_idint_xint_yint_z);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        
SetPlayerPos(playeridint_xint_yint_z);
        
SetPlayerInterior(playeridint_id);
        return 
1;
    } 



Re: Interior ID's - Shockey HD - 06.08.2011

Well your going to have to set the playing into interior.

SetPlayerInterior

With heres the list of interior IDS

Click for list

So, lets say you wanna be set into a interior.

SetPlayerInterior(playerid,9);//9 is cluckin bell
SetPlayerPos(playerid,369.579528,-4.487294,1001.858886);//This will set them in the Cluckin bell


Re: Interior ID's - iiKyle - 06.08.2011

EDIT:


Shocky, Thats what i was After.

FUCK, Now i Need Find the Interior i /saved in


Re: Interior ID's - Shockey HD - 06.08.2011

What are you using rob for?

Are you robbing a store? if so which one?


Re: Interior ID's - iiKyle - 06.08.2011

We'll i just Went Around and /saved All the Robbing puts in interiors.
So i can't really remember haft of them :/


But i spent like 2 hours getting all the coords.


Re: Interior ID's - Shockey HD - 06.08.2011

Okay, well good luck, if you need help. PM me. But im going to bed so pm me in the morning (3:45 AM here)


Re: Interior ID's - MadeMan - 06.08.2011

Why do you need coords for? For teleporting player or checkpoint or what?