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(3851, 66.60, 1554.11, 32.21, 0.00, 90.00, 1.00);
return 1;
}
Warnings
PHP код:
warning 202: number of arguments does not match definition
Re: Map - WhiteGhost - 30.07.2016
Your missing another parameter,the stream distance..
PHP код:
CreateDynamicObject(3851, 66.60, 1554.11, 32.21,0.00, 90.00, 1.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(3851, 66.60, 1554.11, 32.21,0.00, 90.00, 1.00,100.0);
PHP код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)
https://sampwiki.blast.hk/wiki/CreateObject