help on interior
#1

hello everybody
i want to change my police station interior from ls hq to sf hq
that the hq interior
246.375991,109.245994,1003.218750
how can i change the interior and add doors
i need help thank you
Reply
#2

You need the interior id at first, which you can get by going in and typing /interior.
Reply
#3

Quote:
Originally Posted by [ST
DutchBas ]
You need the interior id at first, which you can get by going in and typing /interior.
the interior is 6 what now?
Reply
#4

Could you also tell me the interiorid of the LS police department?
I'll make the code for you then
Reply
#5

Quote:
Originally Posted by [ST
DutchBas ]
Could you also tell me the interiorid of the LS police department?
I'll make the code for you then
246.783996,63.900199,1003.640625
thats the id of lspd
and thats the sf hq thats i want be in my mode
246.375991,109.245994,1003.218750
Reply
#6

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
if(newinteriorid == <add LSPD interiorid here> && oldinteriorid == 0)//Just add the id of LSPD interior here ;)
{
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
SetPlayerInterior(playerid, 6);
}
return 1;
}
Note: This is not really accacurate, it can sometimes bug if you enter another interior that has interiorid 6, but it will work
Reply
#7

Quote:
Originally Posted by [ST
DutchBas ]
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
if(newinteriorid == <add LSPD interiorid here> && oldinteriorid == 0)//Just add the id of LSPD interior here ;)
{
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
SetPlayerInterior(playerid, 6);
}
return 1;
}
Note: This is not really accacurate, it can sometimes bug if you enter another interior that has interiorid 6, but it will work
hank you very match but where i need to add it?
you to script my server(24/7) i give you ftp and all what you need
but if you cant so tell me how add the code
Reply
#8

Add under any public.
Reply
#9

Код:
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(750) : warning 219: local variable "newinteriorid" shadows a variable at a preceding level
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : error 029: invalid expression, assumed zero
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : warning 215: expression has no effect
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : warning 215: expression has no effect
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\New user\щемзп дтбегд\gtarp.pwn(752) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#10

Try this :
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 6 && oldinteriorid == 0)
    {
        SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
        SetPlayerInterior(playerid, 6);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)