SA-MP Forums Archive
How to add buildings and how to make them robbable - 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: How to add buildings and how to make them robbable (/showthread.php?tid=185246)



How to add buildings and how to make them robbable - chrism11 - 23.10.2010

Hello, my name is chris and im just starting to learn scripting and making my own server. Its a CNR or Cops and Robbers but i dont know how to add interiors and the check marks so people can rob places i would appreciate it if someone could help

Thanks,Chris


Re: How to add buildings and how to make them robbable - Mike_Peterson - 23.10.2010

[EXPLANATION]
xpos = the X position of the co-ordinates of the interior
ypos = the Y position of the co-ordinates of the interior
zpos = the Z position of the co-ordinates of the interior
int = the interior of the co-ordinates
[---------------------------------------------------------]
the explanation is just to show u... you have to put the co-ordinates of the interior u want there..
replace zpos,xpos,ypos and int with the co-ords as said..
use this on a command or pickup
SetPlayerInterior(playerid,int);
SetPlayerPos(playerid,xpos,ypos,zpos);
quite simple...
https://sampwiki.blast.hk/wiki/InteriorIDs