SA-MP Forums Archive
Map - 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)
+--- Thread: Map (/showthread.php?tid=613686)



Map - Loinal - 30.07.2016

Hello guys how i make a map only appear when an event is running and if there is no event running it disapper


Re: Map - Deadpoop - 30.07.2016

PHP код:
new bool:event;

CreateMap()
{
     
CreateDynamicObject(//codes...);
     //more objects
     
return 1;
}

DestroyMap()
{
     
DestroyDynamicObject(//code);
     //more
     
return 1;
}

on event start

if(event)
{
     
CreateMap();
}
else
{
      
DestroyMap();




Re: Map - Loinal - 30.07.2016

PHP код:
CreateMap()
{
CreateDynamicObject(385166.601554.1132.21,   0.0090.001.00);
return 
1;

Warnings
PHP код:
warning 202number of arguments does not match definition 



Re: Map - WhiteGhost - 30.07.2016

Your missing another parameter,the stream distance..

PHP код:
CreateDynamicObject(385166.601554.1132.21,0.0090.001.00,100.0); 



Re: Map - Loinal - 30.07.2016

I want it CreateObject


Re: Map - Deadpoop - 30.07.2016

Then change the code to createobject tho createdynamicobject is batter


Re: Map - WhiteGhost - 30.07.2016

Quote:
Originally Posted by Loinal
Посмотреть сообщение
I want it CreateObject
Well

PHP код:
CreateObject(385166.601554.1132.21,0.0090.001.00,100.0); 
PHP код:
CreateObject(modelidFloat:XFloat:YFloat:ZFloat:rXFloat:rYFloat:rZFloat:DrawDistance 0.0
https://sampwiki.blast.hk/wiki/CreateObject