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(playerid, COLOR_GREY, "USAGE: /gotopos [InteriorId] [x] [y] [z]");
return 1;
}
new int_id;
int_id = strval(tmp);
tmp = strtok(cmdtext,idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, COLOR_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(playerid, COLOR_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(playerid, COLOR_GREY, "USAGE: /gotopos [InteriorId] [x] [y] [z]");
return 1;
}
new Float:int_z;
int_z = floatstr(tmp);
format(string, sizeof(string), "You have been teleported to pos: %d, x=%1.5f, y%=1.5f, z=%1.5f", int_id, int_x, int_y, int_z);
SendClientMessage(playerid, COLOR_YELLOW, string);
SetPlayerPos(playerid, int_x, int_y, int_z);
SetPlayerInterior(playerid, int_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?