Interior ID's
#1

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.
Reply
#2

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

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
Reply
#4

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;
    } 
Reply
#5

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
Reply
#6

EDIT:


Shocky, Thats what i was After.

FUCK, Now i Need Find the Interior i /saved in
Reply
#7

What are you using rob for?

Are you robbing a store? if so which one?
Reply
#8

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.
Reply
#9

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)
Reply
#10

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


Forum Jump:


Users browsing this thread: 3 Guest(s)