help on interior - 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: help on interior (
/showthread.php?tid=129437)
help on interior -
nati558866 - 22.02.2010
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
Re: help on interior -
Rzzr - 22.02.2010
You need the interior id at first, which you can get by going in and typing /interior.
Re: help on interior -
nati558866 - 22.02.2010
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?
Re: help on interior -
Rzzr - 22.02.2010
Could you also tell me the interiorid of the LS police department?
I'll make the code for you then
Re: help on interior -
nati558866 - 22.02.2010
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
Re: help on interior -
Rzzr - 22.02.2010
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
Re: help on interior -
nati558866 - 22.02.2010
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
Re: help on interior -
Razvann - 22.02.2010
Add under any public.
Re: help on interior -
nati558866 - 22.02.2010
Код:
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.
Re: help on interior -
Razvann - 22.02.2010
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;
}