SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/03/2019, 10:39 PM   #1
SeeNN
Big Clucker
 
SeeNN's Avatar
 
Join Date: Sep 2017
Location: Craiova
Posts: 121
Reputation: 1
Default Help

How can set a object or a map in virtual world,but to be invisible in normal world.
SeeNN is online now   Reply With Quote
Old 14/03/2019, 11:38 PM   #2
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,065
Reputation: 151
Default Re: Help

Use the streamer: https://forum.sa-mp.com/showthread.php?t=102865

PHP Code:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_OBJECT_SDFloat:drawdistance STREAMER_OBJECT_DDareaid = -1priority 0
__________________
Kaliber is offline   Reply With Quote
Old 15/03/2019, 11:28 PM   #3
SeeNN
Big Clucker
 
SeeNN's Avatar
 
Join Date: Sep 2017
Location: Craiova
Posts: 121
Reputation: 1
Default Re: Help

Quote:
Originally Posted by Kaliber View Post
Use the streamer: https://forum.sa-mp.com/showthread.php?t=102865

PHP Code:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_OBJECT_SDFloat:drawdistance STREAMER_OBJECT_DDareaid = -1priority 0
I have errors,how can I define "worldid,interiorid,areaid,streamdistance,drawdist ance,areaid,priority"
SeeNN is online now   Reply With Quote
Old 15/03/2019, 11:50 PM   #4
d3Pedro
Huge Clucker
 
Join Date: Apr 2012
Location: darkness
Posts: 294
Reputation: 91
Default Re: Help

Quote:
Originally Posted by SeeNN View Post
I have errors,how can I define "worldid,interiorid,areaid,streamdistance,drawdist ance,areaid,priority"
Update streamer to the latest version, or instead of using .worldid use the world id, e.g:
pawn Code:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 1, 1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, -1, 0)
d3Pedro is offline   Reply With Quote
Old 15/03/2019, 11:53 PM   #5
SeeNN
Big Clucker
 
SeeNN's Avatar
 
Join Date: Sep 2017
Location: Craiova
Posts: 121
Reputation: 1
Default Re: Help

Quote:
Originally Posted by ConnorW View Post
Update streamer to the latest version, or instead of using .worldid use the world id, e.g:
pawn Code:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 1, 1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, -1, 0)
I update the streamer,and I must to define more variables,not just worldid.

And look here if I make exactly how did you say:
HTML Code:
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : error 017: undefined symbol "streamdistance"
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : warning 215: expression has no effect
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : error 017: undefined symbol "drawdistance"
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : warning 215: expression has no effect
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : warning 215: expression has no effect
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : warning 215: expression has no effect
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : error 001: expected token: ";", but found ")"
D:\Counter-Strike 1.6 - WaRzOnE\ESW\gamemodes\ESW.pwn(1782) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
SeeNN is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.