30.07.2016, 16:52
Hello guys how i make a map only appear when an event is running and if there is no event running it disapper
new bool:event;
CreateMap()
{
CreateDynamicObject(//codes...);
//more objects
return 1;
}
DestroyMap()
{
DestroyDynamicObject(//code);
//more
return 1;
}
on event start
if(event)
{
CreateMap();
}
else
{
DestroyMap();
}
CreateMap()
{
CreateDynamicObject(3851, 66.60, 1554.11, 32.21, 0.00, 90.00, 1.00);
return 1;
}
warning 202: number of arguments does not match definition
CreateDynamicObject(3851, 66.60, 1554.11, 32.21,0.00, 90.00, 1.00,100.0);
CreateObject(3851, 66.60, 1554.11, 32.21,0.00, 90.00, 1.00,100.0);
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)